我'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尝试使用 Build.VERSION.RELEASE
或 Build.VERSION.SDK_INT
来识别操作系统是否使用共享首选项进行更新 . 应该用以上哪一项来实现这一目标?
谢谢您的帮助 .
1 回答
Build.VERSION.SDK_INT将实现这一目标 .