Android Optional GPS Permissions -


i made location permissions optional having :

<uses-permission android:name="android.permission.access_fine_location" />     <uses-permission android:name="android.permission.access_coarse_location" />     <uses-feature android:name="android.hardware.location" android:required="false" />     <uses-feature android:name="android.hardware.location.network" android:required="false" />     <uses-feature android:name="android.hardware.location.gps" android:required="false" /> 

but when down app google play store still shows location permission in dialog: enter image description here

what missing make permission optional ?

thanks!

you mixing permissions device features. device feature tag tells store devices can download app because have correct hardware. imagine app has no sense in device without gps, shouldn't download it. meaning of optional on device features.

in android permissions declare in manifest presented in play store. because word optional has no sense @ android permissions, @ least until android m.

when declare permission app saying app can access resource. doesn't matter if doing or user use it, in moment have permission declared, presented user.

in android m (the next major release) permissions can revoked user, apps have check if have enough permissions execute actions, still, shown on play store dialog.


Comments