Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

isRegistered() vs. isRegisteredOnServer()

isRegisteredOnServer()

Checks whether the device was successfully registered in the server side

Does the new GCM isRegisteredOnServer() check whether the app is registered on GCM or on the 3rd party server? What is the difference between isRegistered() and isRegisteredOnServer()?

If isRegisteredOnServer() checks in the third party server, how will it do in third party server? Is there any specific function to be implemented in third party server as well?

like image 808
Harish Avatar asked Jul 05 '12 09:07

Harish


1 Answers

isRegistered() returns whether or not the application / device pair is registered on GCM.

isRegisteredOnServer() returns whether or not you've sent the registration ID to your server. It knows this because you'll have called setRegisteredOnServer() after successfully doing so.

like image 74
Darshan Rivka Whittle Avatar answered Oct 05 '22 22:10

Darshan Rivka Whittle