GCM services query - android

I am using GCM services for my application to recieve data from the cloud.
Unfortnately, GCM does not respond or device does not recieve any commands from GCM if the GOOGLE play is not signed in , on the device ?
IS GOOGLE PLAY SIGN UP compulsory to recieve GCM ?
Also if through my application i need to find whether device is SIGN into GOOGLE PLAY
IS it available ?
Any help would be accepted >> THANKS IN ADVANCE

This is explained in the GCM Architectural Overview here are the two points that are important:
It requires devices running Android 2.2 or higher that also have the
Google Play Store application installed, or or an emulator running
Android 2.2 with Google APIs. However, you are not limited to
deploying your Android applications through Google Play Store.
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.
So if the device is running 4.0.4 or higher a Google account is not needed.

No Google play sign up is not compulsory to receive GCM. But remember if you are testing on emulator make sure it is GOOGLE API and not android. You can find a step by step guide to implement GCM using emulator and PHP here

Related

Android GCM account necessary for each device?

Im working on an app with server-client communication. It will have a small
messaging system and maybe i will also synchronize the conigurations with GCM.
All users have to register to use the app and to use the functionalities
from our provided website and they can communicate with other registered user
using the app or the website.
If i use GCM to implement the messaging and the config synchronization, does
every user has to have a google account? This Tutorial says that i have
to create a google account. That wouldnt be good for me.. actually i dont want
my users to be forced to have a google account.
From Android GCM Overview
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.
If you are using GCM from the google play service library yes you need a google account because google play services gets updated through the play store.

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 ?
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?

is gmail account mandatory for Google cloud messaging

We are going to use Google Cloud Messaging service in one of our enterprise mobile application. The target device may be BYOD/company owned devices. Is it mandatory for devices to register/log in to Google account (using somaaddress at G mail dot com) for using the GCM push notification services?
Based on the official docs, a Google account is required for GCM to work only for pre-3.0 devices :
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.
(Source)
That said, from a discussion on the android-gcm group, one of the GCM developers at Google implied that if you register to GCM using the new Google Play Services library, you don't need a Google account even for pre-3.0 devices (Froyo and Gingerbread) :
Froyo and Gingerbread registration is implemented in
GoogleServicesFramework, using the Google account for registration.
This has resulted in a lot of auth errors for people where the account
was not in a good state.
Starting with ICS, GCM doesn't depend or uses the Google account - you
can use it before you add an account or without any accounts.
The "Play Services" update is implementing the new scheme on all
devices - but it seems a small number of devices have problems with
this, we're investigating - but the numbers are far lower than those
with the old scheme.

Android: GCM without Google Account?

We're building an app that relies on Google Cloud Messaging to recieve data. The app will be installed on several tablets, that each should collect different data from our server. When trying the register our test tablet with our GCM server-side, we get the error "Google Play Services out of date. Requires 3265100 but found 3027105".
We have not attached the device to a Google account, since our understanding was that if you are running 4.0.4 or higher you do not need this. We're running 4.2.2 on an Acer Iconia A1. We really don't want to attach an account to each tablet (could possible be hundreds of them).
How do we update Google Play Services, or do we even need it?
Thanks in advance
If you are using GCM from the google play service library yes you need a google account because google play services gets updated through the play store.
you can however not use google play services and just download the GCM library from the SDK Manager but its not going to get updated anymore so if there are any bugs or anything they wont be fixed. all the new updated will go into the Google Play Services

Is it possible to get a GCM registration Id assigned to an Android device that isn't activated?

I am trying to make an app that would require two devices to communicate and am using two Android devices, one activated with Verizon, while the other is not activated. I am running code that gets a GCM registration id which successfully retrieves one on the activated device but does not do so on the other device. I assumed that an internet connection would be enough to qualify a device to receive a GCM registration id but it appears not to be the case. Can anyone please clarify this for me (and/or perhaps point me to something I might have failed to find online)?
Thanks!
GCM is a Google Play service; it requires that both the Google Play APK and the Google Play services APK are installed on the device:
http://developer.android.com/google/play-services/setup.html#ensure
It's also helpful to add a quick check in your code to verify that the user has Google Play Services installed. Check out Google's explanation of it (with sample code):
http://developer.android.com/google/gcm/client.html#sample-play
It requires devices running Android 2.2 or higher that also have the Google Play Store application installed, or or an emulator running Android 2.2 with Google APIs. However, you are not limited to deploying your Android applications through Google Play Store.
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.
Source: http://developer.android.com/google/gcm/gcm.html

Categories

Resources