What happened?
Hey there,
i have the following logic in my app on startup:
- Check if there is a token via
await OneSignal.User.pushSubscription.getIdAsync();
If the token is not existent ( i understand why this is possible - read here) i add a listener via OneSignal.User.pushSubscription.addEventListener('change', listener);
This works well on ios, but on android it seems to never resolve when the previous subscription was deleted. In this case the listener never gets resolved. But i can see the new created subscription id on the onesignal dashboard. Even an app restart does not work. I have to delete and reinstall the app. Then a new id is created and the listener resolves.
Steps to reproduce?
Let me know if you need a repro for this and to best set it up.
What did you expect to happen?
Even after the subscription is deleted, the listener should resolve when the new id is existent.
OneSignal Cordova SDK version
5.1.3
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct
What happened?
Hey there,
i have the following logic in my app on startup:
await OneSignal.User.pushSubscription.getIdAsync();If the token is not existent ( i understand why this is possible - read here) i add a listener via
OneSignal.User.pushSubscription.addEventListener('change', listener);This works well on ios, but on android it seems to never resolve when the previous subscription was deleted. In this case the listener never gets resolved. But i can see the new created subscription id on the onesignal dashboard. Even an app restart does not work. I have to delete and reinstall the app. Then a new id is created and the listener resolves.
Steps to reproduce?
What did you expect to happen?
Even after the subscription is deleted, the listener should resolve when the new id is existent.
OneSignal Cordova SDK version
5.1.3
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct