Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android app not registering with FCM, but Server initialization apparently working #355

Open
xuiqzy opened this issue Nov 5, 2018 · 2 comments

Comments

@xuiqzy
Copy link

xuiqzy commented Nov 5, 2018

I followed the installation steps in README.md, which worked without problems and the project built and ran fine.

I followed the steps in ANDROID.md and added FCM to my project on https://console.firebase.google.com/ (written down Sender ID and Server key). Then I created an app on https://play.google.com/apps/publish and linked the Sender ID in the Services & APIs section.
At this moment I wasn't exactly sure what else to do to make Google aware that my app is authorized to register for FCM. I tried uploading my apk in the internal test track channel, so it could see the config and signature in the apk, is that how it works?

Then I added the appropriate Push.configure and App.configurePlugin calls on the client as well as the Push.configure call on the Server.
To help debugging and fix potential problems, from here under the Server Code section, I added Push.debug = true, Push.allow(...) and a Meteor.methods(...) for debug output and triggering a notification sent from the server via the Browser console in the client (which according to Server logs is triggered).

On the Server logs, the Push registration seems to have completed (GCM configured log output), but on the client, even with Push.debug = true, I get no output on whether anything failed or succeeded.
All I know is that the server doesn't get a device which registers and says Push: Sent message "the title" to 0 ios apps 0 android apps, when sending a message through the Meteor.call.

Did I forget a step for properly registering my app with FCM and how can I further debug my problem?

@aboire
Copy link
Collaborator

aboire commented Dec 16, 2018

#357 (comment)

@derwaldgeist
Copy link

Slightly Off-Topic: I am still on GCM and received the info from Google that it will drop this in favor of GCM by April 2019. Is there any upgrade instructions available, or is it enough to provide the FCM credentials as stated in the docs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants