Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Requirement to mention Google Play services version in app's manifest

Can anybody tell me why we need to mention the Google Play service's version in an app's manifest? What does Android do with this value?

like image 783
Jitendra Prajapati Avatar asked Feb 21 '14 05:02

Jitendra Prajapati


People also ask

What should be included in Android manifest?

The manifest comprises a root manifest tag with a package attribute set to the project's package. It should also include an xmls:android attribute that will supply several system attributes used within the file.

How do you know if an app needs Google Play Services?

If an app requires Google Play Services, then as soon as you open the app, you will be warned that you can't run the app unless you have Google Play Services or in better cases, that you will have limited functionality or that you may encounter unintended behaviour.


2 Answers

Google continuously upgrading it's play service.But as old applications are there, so to support applications which are using old version of play service we need to spacify on what version of play service our application based.

Update:

we include google-play-service lib and the version is based on this lib not on google play service installed in our mobile. so play-service-lib jar will always be inside in our application with it's version code.So google will manage google play service request according to play-service-lib version.

we provide version of google-play-service lib in our manifest

<meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />

and "@integer/google_play_services_version" refers to version of Lib,which is using in our application.

This is just like, We request Facebook installed application or we use Facebook Sdk with our application..Both are different things.

Hope it is clear..

like image 108
Vibhor Bhardwaj Avatar answered Nov 16 '22 03:11

Vibhor Bhardwaj


Using the version , Google Play Store keeps a track of the number of updations done to the application and .apk file uploaded to the Developer's Console . This is applicable after the application has been Published in the Google Play Store.

If any modification is done to the application and you want to upload the .apk file to the Developer's Console to distribute it to the user , you have to change the version . Else you would not be able to upload the .apk file.

Also upgrading the version notifies the users about any changes/modifications/upgradations done the published application in the Google Play Store.

like image 27
Aparupa Ghoshal Avatar answered Nov 16 '22 03:11

Aparupa Ghoshal