-
Notifications
You must be signed in to change notification settings - Fork 76
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
App crashes when closed while receiving notification #54
Comments
This only seems to happen when I import AppState from react-native in the same file as my notification-code. Any ideas here? |
I just wrote about a possible workaround here: #51 (comment) |
Comment the line. It should work. My index.android.js snippet: `if (GcmAndroid.launchNotification) { //GcmAndroid.stopService(); |
@savioseb It still crashes!! any possible workaround? |
As @udfalkso mentioned I have rewrite his code for workaround to get notification dynamically from GCM itself.
|
For some reason, my app crashes if I receive a push notification when the app is closed. It works just fine when the app is in foreground/background, but if I actually close it, notifications will cause a crash. My logs contain the following:
The text was updated successfully, but these errors were encountered: