-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple instances getting created #28
Comments
+1 |
Samething is happening here. After close the app and reopen it, it generates two instances, if I close it again and reopen, it generates more one instance and it goes on until I get a java.lang.OutOfMemoryError. Any ideas? |
Because there is a bug in the module its not listening to destroy events of the app we can implement a module to listen and kill app or stop the service by that. LifeCyleModule.java
LifeCylePackage.java
|
Hi, So I was using a notifications library which has a function which detects that whether app is opened via notification or not (
onNotificationOpened()
). So, every time a foreground service is created, and the app is closed and if we tap on notification then theonNotificationOpened()
gets called as many times as the app is closed and opened when the foreground service is started.Seems like multiple instances are getting created.
I've also set the
android:launchMode="singleTop"
in AndroidManifest.xmlPlease if any one could throw some light on this.
Thanks
The text was updated successfully, but these errors were encountered: