Ashok
Ashok

Reputation: 611

updating device gcm registration id on OS update

I'm trying to implement update device GCM registration id on android OS update for my app to receive push notification even after OS update. I read somewhere I need to update gcm reg id for app version update and OS update. For OS version update I'm trying to use Build.VERSION.RELEASE or Build.VERSION.SDK_INT to identify OS is updated with shared preference. Which one of the above should be used to achieve this ?

Thanks for the help.

Upvotes: 0

Views: 56

Answers (1)

Omolara
Omolara

Reputation: 100

Build.VERSION.SDK_INT will achieve this.

Upvotes: 3

Related Questions