Open AnD010 opened 4 years ago
Hi,
I'm not sure if the method . clearAllState
does what you intend it to do - it will call stop()
and then start()
You probably just want to call stop()
yourself, and then start()
later.
I can't reproduce your issue with stopping and starting the library with a button press in a simple Activity - perhaps you could try extracting that logic out of the coroutine and seeing if the issue still persists?
Thanks,
Hi, I don´t understand this error... It only happens when I close session and call to
Then when go to my first Activity the app crash with the error Pusher error Start method must be called before setUserId pusher. But as you can see in my below code I call PushNotifications.start() first. When the apps crash and open again, all works fine My code
onCreate(savedInstanceState: Bundle?) {initPusher() } initPusher is this code
What is the problem? PushNotifications.start() is asynchronous method???