react-native-notifications
react-native-notifications copied to clipboard
Notification not receiving in Android 7.0 and above.
I tested on Android 6.0 and it works. Anyone knows what the problem?
Could be related to #175 ? Android 8+ needs a notification channel now.
@brookemitchell but I have this issue in Android 7.0 too, any ideas?
It says here that, Android 8.0 onwards we should use FCM, rather than GCM.
https://developers.google.com/cloud-messaging/android/client
I went to see if the onMessageReceived was called in the GcmMessageHandlerService. It didn't print out anything in the shell.
@brookemitchell hi, my bad. I change the targetSDKVersion and it works now.