Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Push] configure echo over push config #663

Merged
merged 15 commits into from
Jan 17, 2023
Merged

[Push] configure echo over push config #663

merged 15 commits into from
Jan 17, 2023

Conversation

llbartekll
Copy link
Contributor

@llbartekll llbartekll commented Jan 12, 2023

Description

add push config in order to not require from sdk consumer configuration of Echo

How Has This Been Tested?

manual testing with Example App

Due Dilligence

  • Breaking change
  • Requires a documentation update

@llbartekll llbartekll self-assigned this Jan 12, 2023
@arein arein added the accepted label Jan 12, 2023
@llbartekll llbartekll changed the title configure echo over push config [Push] configure echo over push config Jan 12, 2023
@llbartekll llbartekll marked this pull request as draft January 12, 2023 14:06
@llbartekll llbartekll marked this pull request as ready for review January 12, 2023 14:24
@llbartekll llbartekll marked this pull request as draft January 12, 2023 14:25
@llbartekll llbartekll marked this pull request as ready for review January 12, 2023 14:38
static public func configure() throws {
var clientId: String!
do {
clientId = try Networking.interactor.getClientId()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should clientId always exist? We can create generate it if not possible to try keychain.read(key: key)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is created automatically if it does not exist yet but there is possible error from writing/reading keychain, thats why we use try.
Make sense?

@llbartekll llbartekll merged commit 198652e into develop Jan 17, 2023
@llbartekll llbartekll deleted the push-config branch January 17, 2023 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants