Google Cloud Messaging for Android library vs. Google Play Services

Xeos

Current Google GCM documentation requires you to install Google Play Services and to use them for GCM (Google Cloud Messaging). The library is 1.1MB, yet my current .apk is half that size. My app is intended to receive GCM and display some data on the screen, so I don't need Google Play Services' Maps API, G+ login, etc. Nor I need to be able to respond back to the server after getting GCM.

SDK Manager allows download and installation of standalone Google Cloud Messaging for Android package. It is the one that was used before Google I/O 2013, where Play Services were announced.

My question is: what is the difference in performance between GPS's GCM and standalone GCM for Android? Do I really have to switch to GPS? Is standalone GCM depricated? Can I still receive data (up to 4K) with standalone GCM?

luthier

As far as I know, yes, the old one is deprecated (it says so here http://developer.android.com/reference/gcm-packages.html), but still works.

I would recommend using the Play Services version, though, since it's MUCH easier to configure and use, and if you don't need G+ login or anything else you don't have to use it. Yes, your APK will be a little bit bigger, but I think it's worth it.

Plus, any new features or improvements to the protocol will most likely be only for the Play Services library, and not for the old one.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Having trouble configuring google play services for Google cloud messaging

From Dev

Android Google Cloud Messaging (GCM) token generation crash after Firebase-related Google Play Services update

From Dev

Google Play Services 8.4.0 breaks Google Cloud Messaging for Android if iOS is also used

From Dev

Using firebase cloud messaging in a device without Google Play Services

From Dev

Import Google Play Services library in Android Studio

From Dev

android what is the difference between Android Support Repository vs Android Support Library vs Google Repository vs Google Play Services

From Java

Android : LocationManager vs Google Play Services

From Dev

Google Cloud Messaging VS Google Cloud Platform

From Dev

Google Cloud Messaging VS Google Cloud Platform

From Dev

Google Cloud Messaging vs Firebase

From Dev

GCMRegistrar vs Google Cloud Messaging

From Dev

Android - Google Maps, Google Play Services library referencing

From Dev

Google Cloud Messaging: how to ask for google play services availability with GoogleApiAvailability Class

From Dev

Google Cloud Messaging for Android Library not Found in the sdk Manager

From Dev

Google Cloud Messaging for Android Library not Found in the sdk Manager

From Dev

Google Play Services Library not installing

From Dev

Android : Google Cloud Messaging Error

From Dev

Google Cloud Messaging for Android with Quickblox

From Dev

Android : Google Cloud Messaging Error

From Dev

New Google Play App and Firebase Cloud Messaging

From Dev

android Is support library v4 needed for google play services?

From Dev

How can i downgrade Google Play Services Library in Android SDK?

From Dev

google play services libraries - android dev : reducing the library size?

From Dev

Google Play Game Services VS Google Drive

From Dev

Implementing google play services in android

From Dev

Android google play services and IntentService

From Dev

Android google play services lib

From Dev

Android Google Play Games Services

From Dev

Has the Google Play Services library been updated?

Related Related

  1. 1

    Having trouble configuring google play services for Google cloud messaging

  2. 2

    Android Google Cloud Messaging (GCM) token generation crash after Firebase-related Google Play Services update

  3. 3

    Google Play Services 8.4.0 breaks Google Cloud Messaging for Android if iOS is also used

  4. 4

    Using firebase cloud messaging in a device without Google Play Services

  5. 5

    Import Google Play Services library in Android Studio

  6. 6

    android what is the difference between Android Support Repository vs Android Support Library vs Google Repository vs Google Play Services

  7. 7

    Android : LocationManager vs Google Play Services

  8. 8

    Google Cloud Messaging VS Google Cloud Platform

  9. 9

    Google Cloud Messaging VS Google Cloud Platform

  10. 10

    Google Cloud Messaging vs Firebase

  11. 11

    GCMRegistrar vs Google Cloud Messaging

  12. 12

    Android - Google Maps, Google Play Services library referencing

  13. 13

    Google Cloud Messaging: how to ask for google play services availability with GoogleApiAvailability Class

  14. 14

    Google Cloud Messaging for Android Library not Found in the sdk Manager

  15. 15

    Google Cloud Messaging for Android Library not Found in the sdk Manager

  16. 16

    Google Play Services Library not installing

  17. 17

    Android : Google Cloud Messaging Error

  18. 18

    Google Cloud Messaging for Android with Quickblox

  19. 19

    Android : Google Cloud Messaging Error

  20. 20

    New Google Play App and Firebase Cloud Messaging

  21. 21

    android Is support library v4 needed for google play services?

  22. 22

    How can i downgrade Google Play Services Library in Android SDK?

  23. 23

    google play services libraries - android dev : reducing the library size?

  24. 24

    Google Play Game Services VS Google Drive

  25. 25

    Implementing google play services in android

  26. 26

    Android google play services and IntentService

  27. 27

    Android google play services lib

  28. 28

    Android Google Play Games Services

  29. 29

    Has the Google Play Services library been updated?

HotTag

Archive