Skip to content
New issue

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

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

Already on GitHub? # to your account

[iOS] fix: prevent setDeviceToken to reject after resolving #250

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jblarriviere
Copy link

Hello!

Debugging why setDeviceToken is rejecting was a bit painful as the error ended up hidden by a Tried to resolve a promise that has already been rejected error.
I was a bit surprised about that, I would have expected failure to be async isn't it ?

I made those changes as an attempt to prevent both resolving and rejecting, but if failure is sync maybe just exiting in there would be enough?

Anyway, I guess adding a success callback to the iOS SDK setDeviceToken and resolving in there would be cleaner.

Thanks!

@saaaab1213
Copy link

We are seeing this error constantly, any chance this gets merged?

@yjb94
Copy link

yjb94 commented Mar 25, 2025

+1 for this

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants