4

Android developer documentation says :

It uses an existing connection for Google services. For pre-3.0 devices, this requires users to set up their Google account on their mobile devices. A Google account is not a requirement on devices running Android 4.0.4 or higher.

Why that account login is required . How google has removed that necessity for devices > 4.0.4 ?

lakshay
  • 1,018
  • 2
  • 18
  • 30

1 Answers1

10

Google account login is no longer needed for GCM to work. It used to be required for registration to GCM, but a recent Play Services update stopped using the Google account even on Froyo and Gingerbread.

If you are registering to GCM with Play Services (i.e. With GoogleCloudMessaging.register), you no longer need to configure google account on any Android version. If you are using the deprecated library (GCMRegistrar.register), you still need a Google Account on pre 4.0.4 version.

More details at https://groups.google.com/forum/#!topic/android-gcm/ecG-RfH-Aso and GET_ACCOUNTS permission while using GCM - Why is this needed?

Community
  • 1
  • 1
Pankaj Kumar
  • 81,967
  • 29
  • 167
  • 186
  • Did GCMRegistrar.register send accountID(which was logged in ) to gcm server ? Now how does it identify the device and account? – lakshay Aug 26 '14 at 06:01
  • Previously GCM implemented in GoogleServicesFramework (which needs the google account), using the Google account for registration for older versions. But now it totally depends on Google Play services, where no google account needs to be added even on older versions. – Pankaj Kumar Aug 26 '14 at 06:08