Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why google Account login is required for GCM to work for devices below 4.0.4 OS?

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 ?

like image 262
lakshay Avatar asked Dec 25 '22 05:12

lakshay


1 Answers

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?

like image 197
Pankaj Kumar Avatar answered Jan 25 '23 14:01

Pankaj Kumar