react-native-notifications icon indicating copy to clipboard operation
react-native-notifications copied to clipboard

Notification not receiving in Android 7.0 and above.

Open Jp3rd opened this issue 8 years ago • 4 comments

I tested on Android 6.0 and it works. Anyone knows what the problem?

Jp3rd avatar Jan 25 '18 09:01 Jp3rd

Could be related to #175 ? Android 8+ needs a notification channel now.

brookemitchell avatar Jan 26 '18 21:01 brookemitchell

@brookemitchell but I have this issue in Android 7.0 too, any ideas?

Jp3rd avatar Jan 27 '18 06:01 Jp3rd

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.

Jp3rd avatar Jan 27 '18 06:01 Jp3rd

@brookemitchell hi, my bad. I change the targetSDKVersion and it works now.

Jp3rd avatar Feb 07 '18 13:02 Jp3rd