How to check the sender ID of the GCM Token device in Parse.com

We use Parse.com to send push notifications. With the announced disconnect, we are now learning how to switch to another service. On Android, we did not configure GCM sender ID, so we indirectly used Parse.com sender ID. This is a migration issue (see Urgent Note for Parse Android Browser Users and Migrating an Existing Analysis Application (Exporting GCM Registration Identifiers section)).

Therefore, we are now preparing a new version of our Android application with our own GCM sender identifier. Is there a way in Parse.com to check which devices (installation) are associated with our sender ID? How can we check if our update was successful? Does Google provide any API for direct or indirect verification of whether the sender ID works with our Google project?

Any tool or any approach that requires writing code is fine.

+4
source share
3 answers

Thanks for posting this question. I am helping to work on OneSignal and I have updated the mentioned blog post based on reviews.

, ParseInstallation GCMSenderId :

final ParseInstallation parseInstallation = ParseInstallation.getCurrentInstallation();
parseInstallation.put("GCMSenderId",YOUR_NEW_SENDER_ID); 
parseInstallation.saveInBackground();`

, GCM. Parse, ours, .

+2

Parse Server push-, .

Parse Push GCM, Android GCM. , Google Play, , , GCM.

, , , .

Parse Installation . , , - , appVersion .

, , , GCM , Google Play. Android- . , push- push-.

0

push- : https://parse.com/docs/android/guide#push-notifications

,

... , push push, Parse GCM. GCM <meta-data> <application> AndroidManifest.xml...

GCMSenderId: Android ParseInstallations, push GCM. Parse GCM. , push. , API GCM, GCM, push- Parse.

0

Source: https://habr.com/ru/post/1626978/


All Articles