-
Notifications
You must be signed in to change notification settings - Fork 42
[SDK-234] Add real time updates to iOS #803
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
base: loren/embedded/SDK-303-make-the-embedded-functionality-for-ios-and-andrio
Are you sure you want to change the base?
Conversation
|
Coverage Impact ⬆️ Merging this pull request will increase total coverage on Modified Files with Diff Coverage (1)
🛟 Help
|
❌ 2 blocking issues (5 total)
|
| if onEmbeddedMessageUpdatePresent || onEmbeddedMessagingDisabledPresent { | ||
| IterableAPI.embeddedManager.addUpdateListener(self) | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * | ||
| * TODO: Figure out if this is purposeful | ||
| */ | ||
| // eslint-disable-next-line eqeqeq |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| */ | ||
| // eslint-disable-next-line eqeqeq | ||
| onEmbeddedMessagingDisabledPresent: | ||
| this.onEmbeddedMessagingDisabled != undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ayyanchira
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny suggestion suggested
src/core/classes/Iterable.ts
Outdated
| if (Iterable.savedConfig.onEmbeddedMessageUpdate) { | ||
| RNEventEmitter.addListener( | ||
| IterableEventName.handleEmbeddedMessageUpdateCalled, | ||
| () => { | ||
| Iterable.savedConfig.onEmbeddedMessageUpdate?.(); | ||
| } | ||
| ); | ||
| } | ||
|
|
||
| if (Iterable.savedConfig.onEmbeddedMessagingDisabled) { | ||
| RNEventEmitter.addListener( | ||
| IterableEventName.handleEmbeddedMessagingDisabledCalled, | ||
| () => { | ||
| Iterable.savedConfig.onEmbeddedMessagingDisabled?.(); | ||
| } | ||
| ); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if Iterable.savedConfig.embeddedMessagingEnabled ?
Then add both listners.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
| /** | ||
| * A boolean indicating if an embedded message update callback is present. | ||
| * | ||
| * TODO: Figure out if this is purposeful | ||
| */ | ||
| // eslint-disable-next-line eqeqeq | ||
| onEmbeddedMessageUpdatePresent: this.onEmbeddedMessageUpdate != undefined, | ||
| /** | ||
| * A boolean indicating if an embedded messaging disabled callback is present. | ||
| * | ||
| * TODO: Figure out if this is purposeful | ||
| */ | ||
| // eslint-disable-next-line eqeqeq | ||
| onEmbeddedMessagingDisabledPresent: | ||
| this.onEmbeddedMessagingDisabled != undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These feel unnecessary.
…terable configuration
…for-ios-and-andrio' into loren/embedded/SDK-234-ios-add-real-time-updates-and-track-message-rece

🔹 JIRA Ticket(s) if any
✏️ Description
Adds real time updates to iOS