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!
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With