Closed Almouro closed 5 years ago
Hi @Almouro,
Checking it.
@Almouro,
Do you use In-App messages (or this solution) to subscribe for push notifications?
Hi @wfhm, We use this solution to subscribe for push notifications.
We subscribe with:
DeviceEventEmitter.addListener("pushOpened", (push: PushType) => ...
We only use the functions:
init
register
setTags
@Almouro,
Fixed with the latest release.
@wfhm thanks! Yes https://github.com/Pushwoosh/pushwoosh-react-native-plugin/pull/77/files should fix the issue We'll add in our next release!
Do you know when the callback can trigger twice? It'd be nice to know if there's something we're doing wrong on our end.
Hi guys!
Thanks for writing a RN version for the plugin, it's very helpful!
In production builds on our app, we're getting the infamous:
Stacktrace
aka this occurs only here on
success.invoke
Calling the
register
method twice from our app should not trigger such a bug since thesuccess
object would be different instances.That's why I'm thinking it might be coming from
Pushwoosh.getInstance().registerForPushNotifications
calling the callback twice. Could it be possible? It's a tad hard to debug in the Pushwoosh Android SDK since I can only check decompiled.class
files.Additional details
Devices affected: seems to be all OSes, all brands Occurrences: 866 crashes in last 90 days
This is an issue we seem to have had since we installed the plugin (it was with version
5.11.0
at the time)