Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android : Is it necessary to include Google Play services to use GCM?

I have a library android project with size 200kb. Now I want to use GCM in it. To use GCM I have to include Google Play Services, which increases my project size by 1 MB making it to 1.2 MB which is kind of bad. Any work around for this?

Thanks in advance!

like image 207
Vipul J Avatar asked Jan 11 '14 07:01

Vipul J


People also ask

Is Google Play Services necessary?

Google Play Services are an essential part of the Android operating system. They allow many apps, including third-party apps and games, to exchange information with Google.

Can I delete Google Play Services?

Google Play Services isn't the same as the Google Play Store app, and is included with Android. Google Play Services doesn't make your battery drain faster or use too much of your mobile data plan. You can't force stop or uninstall Google Play services.

What can I use instead of Google Play Services?

One such Google Play Store alternative is F-droid. This app store contains free and open source Android apps. F-droid is popular among developers, and the store includes a vast collection of different apps. Then there is APKMirror — an Android apps website, encompassing thousands of apps on Google Play Store.


1 Answers

From the Google Play services version 6.5, you can selectively compile Google Play service APIs into your app.

To include GCM part only, use:

com.google.android.gms:play-services-gcm:7.8.0
like image 139
Singed Avatar answered Oct 14 '22 22:10

Singed