¡@

Home 

2014/10/16 ¤W¤È 08:22:23

android Programming Glossary: registeredversion

Handling registration ID changes in Google Cloud Messaging on Android

http://stackoverflow.com/questions/16838654/handling-registration-id-changes-in-google-cloud-messaging-on-android

check if app was updated if so it must clear registration id to avoid a race condition if GCM sends a message int registeredVersion prefs.getInt PROPERTY_APP_VERSION Integer.MIN_VALUE int currentVersion getAppVersion context if registeredVersion currentVersion.. int registeredVersion prefs.getInt PROPERTY_APP_VERSION Integer.MIN_VALUE int currentVersion getAppVersion context if registeredVersion currentVersion isRegistrationExpired Log.v TAG App version changed or registration expired. return return registrationId..

In GoogleCloudMessaging API, how to handle the renewal or expiration of registration ID?

http://stackoverflow.com/questions/17335572/in-googlecloudmessaging-api-how-to-handle-the-renewal-or-expiration-of-registra

check if app was updated if so it must clear registration id to avoid a race condition if GCM sends a message int registeredVersion prefs.getInt PROPERTY_APP_VERSION Integer.MIN_VALUE int currentVersion getAppVersion context if registeredVersion currentVersion.. int registeredVersion prefs.getInt PROPERTY_APP_VERSION Integer.MIN_VALUE int currentVersion getAppVersion context if registeredVersion currentVersion isRegistrationExpired Log.v TAG App version changed or registration expired. return return registrationId..

GCM Not Sending the Notifications

http://stackoverflow.com/questions/18571844/gcm-not-sending-the-notifications

so it must clear the registration ID since the existing regID is not guaranteed to work with the new app version. int registeredVersion prefs.getInt PROPERTY_APP_VERSION Integer.MIN_VALUE int currentVersion getAppVersion context if registeredVersion currentVersion.. int registeredVersion prefs.getInt PROPERTY_APP_VERSION Integer.MIN_VALUE int currentVersion getAppVersion context if registeredVersion currentVersion Log.i TAG App version changed. return return registrationId Registers the application with GCM servers..