Closed chokokatana closed 9 months ago
@chokokatana thank you for reaching out! We're investigating this.
@chokokatana just wanted to confirm--where are you calling this method in your code? It appears that it may be getting called before OneSignal initializes. Are you able to send over your full log for us to dig deeper?
Can't sent the log due to not being reproducible. I'm initialising OneSignal in a background thread because otherwise I get ANR from users… so I guess this user managed to get to an activity with OneSignal init thread still stuck. Thanks for the idea, I can work around this and wrap all OneSignal calls to make sure the initialisation is done.
What happened?
Remote crash report from app calling OneSignal.removeTriggerForKey in a viewModelScope.
Steps to reproduce?
Inside an activity, in the
onStart()
method instantiate a viewmodel and call removeTriggerForkey.What did you expect to happen?
No crash.
OneSignal Android SDK version
4.8.6
Android version
8
Specific Android models
Relevant log output
Code of Conduct