[FCM] Supporting Non-Google Play devices

1,692 views
Skip to first unread message

Avinash Ananth Narayan R

unread,
Aug 23, 2016, 10:36:16 AM8/23/16
to Firebase Google Group
Does FCM have support for Non-Google Play devices? (i.e., devices lacking Google Play Services APK)

Kato Richardson

unread,
Aug 23, 2016, 2:14:53 PM8/23/16
to Firebase Google Group
Hi Avinash,

I assume so, based on the second paragraph of the FCM docs:  FCM clients require devices running Android 2.3 or higher that also have the Google Play Store app installed, or an emulator running Android 2.3 with Google APIs. Note that you are not limited to deploying your Android apps through Google Play Store.

There is also some advice a bit lower on dealing with devices that don't support Play:

Check for Google Play Services APK
 
Apps that rely on the Play Services SDK should always check the device for a compatible Google Play services APK before accessing Google Play services features. It is recommended to do this in two places: in the main activity's onCreate() method, and in its onResume() method. The check in onCreate() ensures that the app can't be used without a successful check. The check in onResume() ensures that if the user returns to the running app through some other means, such as through the back button, the check is still performed. If the device doesn't have a compatible Google Play services APK, your app can call GooglePlayServicesUtil.getErrorDialog() to allow users to download the APK from the Google Play Store or enable it in the device's system settings. For a code example, see Setting up Google Play Services.

I hope that helps!

☼, Kato 


On Tue, Aug 23, 2016 at 4:36 AM, Avinash Ananth Narayan R <nash...@gmail.com> wrote:
Does FCM have support for Non-Google Play devices? (i.e., devices lacking Google Play Services APK)

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/9a49bccd-65e5-4dc1-825d-1307e922489c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Avinash Ananth Narayan R

unread,
Aug 24, 2016, 11:11:21 AM8/24/16
to Firebase Google Group
Thank you for the clarification,

So from 
FCM clients require devices running Android 2.3 or higher that also have the Google Play Store app installed,
I can understand that if there is no google playstore installed -- i.e., lacks package com.google.android.gsf, or com.google.android.apps.playconsole ? -- the FCM will not work (since it is backed by GCM)

Can you please confirm this?

On Tuesday, 23 August 2016 23:44:53 UTC+5:30, Kato Richardson wrote:
Hi Avinash,

I assume so, based on the second paragraph of the FCM docs:  FCM clients require devices running Android 2.3 or higher that also have the Google Play Store app installed, or an emulator running Android 2.3 with Google APIs. Note that you are not limited to deploying your Android apps through Google Play Store.

There is also some advice a bit lower on dealing with devices that don't support Play:

Check for Google Play Services APK
 
Apps that rely on the Play Services SDK should always check the device for a compatible Google Play services APK before accessing Google Play services features. It is recommended to do this in two places: in the main activity's onCreate() method, and in its onResume() method. The check in onCreate() ensures that the app can't be used without a successful check. The check in onResume() ensures that if the user returns to the running app through some other means, such as through the back button, the check is still performed. If the device doesn't have a compatible Google Play services APK, your app can call GooglePlayServicesUtil.getErrorDialog() to allow users to download the APK from the Google Play Store or enable it in the device's system settings. For a code example, see Setting up Google Play Services.

I hope that helps!

☼, Kato 

On Tue, Aug 23, 2016 at 4:36 AM, Avinash Ananth Narayan R <nash...@gmail.com> wrote:
Does FCM have support for Non-Google Play devices? (i.e., devices lacking Google Play Services APK)

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/9a49bccd-65e5-4dc1-825d-1307e922489c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages