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

fcm specific device is fail (by the way share good test online ) #690

Closed
mygoodboy opened this issue Oct 3, 2018 · 1 comment
Closed

Comments

@mygoodboy
Copy link

Step 1: Are you in the right place?

##FCM test online provided
http://pushtry.com/
1.
server key
AIzaSyC2njH1jXYSIINca9f3Il9tu8scOnNI6EQcontent_copy
2.
/topics/anything
3.
anydata
it is success{"message_id":8393642056815307902}
but i want to set specific device

this my information of android app

專案 ID elated-emitter-218305
網路 API 金鑰 AIzaSyDQPBImnDBDTk0Y6lc_OCUQB4SDdnJ2mg4
android app testapp com.company.testapp
應用程式 ID 1:911344285318:android:f83f248dcd2aa534
應用程式暱稱 testapp
套件名稱 com.company.testapp

it is fail when replacing /topics/anything with 1:911344285318:android:f83f248dcd2aa534
InvalidRegistration

@kroikie
Copy link
Contributor

kroikie commented Oct 3, 2018

@mygoodboy Looks like you are using the wrong thing for the device/app identifier. You want to use the Instance ID token. That token is made available via the onNewToken callback or you can retrieve it manually from FirebaseInstanceId.getInstance().getInstanceId().

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

2 participants