Is possible to specify different permissions depending on the Android version? -


my app using parse library push notifications, requires permissions work properly. i've noticed of potential users of application bit suspicious in particular of permission get_accounts: think access personal data or :-/

i looked @ android documentation (see here) , seems get_accounts required push notifications devices running os versions below 4.0.4, rid of permission @ least higher os versions.

what best way achieve this?. imagine use play store multiple apk support, necessary removing single line of permissions in manifest file?. hope there better solution far couldn't find out other.

use android:maxsdkversion on <uses-permission> manifest entry:

<uses-permission android:name="android.permission.get_accounts"     android:maxsdkversion="13" /> 

note: should still test on both android versions parse may still check account on higher versions of android.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -