Does FireBase Cloud Messeging requires Play Servic

2019-04-09 05:44发布

问题:

Does FCM requires. that the user must have Play Services installed on his phone in order to receive notifications?

You see GCM do but now Im planning to move to FCM hoping it does not...how could I know before testing?

回答1:

Yes.

See: https://developers.google.com/cloud-messaging/android/android-migrate-fcm#switch_to_fcm_in_the_app-level_buildgradle

https://firebase.google.com/docs/cloud-messaging/android/client

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.


回答2:

Yes it does. Firebase Cloud Messaging is just a rebrand of GCM.

More information in GCM FAQ.



回答3:

Firebase requires Google Play Services 9.0.0 or newer in order to be used in you application. (This includes FCM).

This is listed as the first prerequisite in the Add Firebase to your Android Project document in the Get Started Guide:

Add Firebase to your Android Project

https://firebase.google.com/docs/android/setup