oney
oney
In demo project, when the app is killed, we still handle notification in JS code. Please see [`index.android.js` of TestGcm](https://github.com/oney/TestGcm/blob/master/index.android.js) We handle notification when the app is killed in ```...
Yes, you should.
Can you use `adb logcat` to get logs when crashing?
Please use `adb logcat` to get the logs about Java, not just javascript.
The configuration of notification is in here. https://github.com/oney/react-native-gcm-android/blob/master/android/src/main/java/com/oney/gcm/RNGcmListenerService.java#L90 Modify to `.setAutoCancel(true)` will do the trick. I recommend you create new GcmListenerService to handle notification in Java code by yourself. Like...
Of course it is possible. Because the bridge of JS and native will be paused by default when the app enters background(onPause), we can't handle notifications in JS code. Possible...
@txix Which this module version you use?
@txix You're right. Three issues exist. Please update to 0.1.1 from npm. These issue should be fixed. Make sure to re-read README and modify codes.
It's ok. Can you try the demo again? https://github.com/oney/TestGcm You can use the curl command in README to test sending gcm notification.
Run `adb logcat` and get logs when you click the notification, and paste the logs to me. Thanks!