Meteor-Community-Packages / Meteor-Community-Packages/raix-push

No notifications are shown on Android 8 devices

Open
#334 20 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
505
Forks
191
PR merge metrics
No merged PRs in 30d

Description

Hi!

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!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Android notification failure with the listed phonegap-plugin-push@2.1.3 and raix:push@3.3.0 versions, then inspect the server-side send path and the 0 android apps log. Compare the FCM configuration in google-services.json, build-extra.gradle, and the application settings. Done means Android devices receive notifications and the server reports them as Android recipients.

Written by the indexing model from the issue text.

Assessment

Tech stack
firebase, javascript
Domain
backend-api-design, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.