No notifications are shown on Android 8 devices
See original GitHub issueHi!
I have been able to send notifications to android users in the past, using an older version of this package and cordova:phonegap-plugin-push
. However, I wasn’t able to send to Android 8 devices. I was using GCM, and decided to switch to FCM.
I therefor updated to the newest version of plugin-push (allowed by the cordova-android version in meteor):
phonegap-plugin-push@2.1.3
raix:push@3.3.0
When I now send notifications, all iOS devices receive their messages correctly, but none are sent to android devices:
Push: Sent message "hello" to 1 ios apps 0 android apps
I didn’t change my configuration files, but I added google-services.json
in cordova-build-override/platforms/android
in order to configure FCM.
I also added build-extra.gradle
following the suggestion of this comment: https://github.com/meteor/meteor/issues/7600#issuecomment-368101400
I’m using the new Cloud Messaging API keys from https://console.firebase.google.com/u/0/project/pentu-ad4be/settings/cloudmessaging
.
In google-services.json a different API key is used then what is added to settings (I suppose this being a generic API key voor Firebase services). (I tried changing configuration to use the same Key as well).
Even for different combinations of the same user having multiple registered devices (both iOS and Android, only Android 7, only Android 8, both android 7 and 8, …), none of the android devices are receiving messages. Users that were receiving messages with the older versions and GCM, no longer receive messages (with the same device registration data in their user profile).
I suppose something is going wrong server-side, when sending requests to firebase services, (because the app keeps logging 0 android apps
). I dont see any other logs, so I don’t know if the server side code is not sending requests at all, or no valid request is being sent.
Feels like I have tried everything. What do you suggest to further debug the issue? 😕
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:20 (2 by maintainers)
Ok, starting on it today.
I will pin the phonegap-plugin-push at 2.1.3 (and will test and develop against this version), since 2.2.x needs cordova-android 7.1.0 and Meteor 1.6.1.1 has support for cordova-android 6.4.0
Hey, I have a problem in receiving android messages with android 8.1, no error messages or anything. Notifications just don’t come through even when the server says that the message was sent successfully. I tried and failed to do the long alternative method with no outcome.