Search code examples
androidandroid-c2dmgoogle-cloud-messaging

Does android GCM registration changes?


Does android GCM registationid changes? As I understood, It's not permanent. When internet connection is on it's send an onRegister signal. But what about when there is no internet connection?


Solution

  • The registration ID can change at any time which is why you need to implement GCMBaseIntentService and override onRegistered so that anytime a new registration ID is sent to you, you can get it.

    If there is no internet then obviously you wont be able to get the new ID