You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/07/11 13:47:12 UTC

[GitHub] [cordova-plugin-geolocation] breautek commented on issue #169: once user denied permission to track location, then it's not requesting permissions

breautek commented on issue #169: once user denied permission to track location, then it's not requesting permissions
URL: https://github.com/apache/cordova-plugin-geolocation/issues/169#issuecomment-510492785
 
 
   On iOS, if a user denies permission, then iOS will block that app from requesting permissions. The user must go to the Settings app themselves to enable permissions for your app.
   
   Android has the same behaviour, except that android has a checkbox to "Do not ask me again" on their permission models. If the user checked that checkbox and deny permissions, then the android behaviour is exactly the same as iOS.
   
   In these cases, the app cannot request the same permission again. 
   
   If you're just testing, on Android you can completely uninstall the app, and reinstall it which should reset the permission status back to a "not requested" state. Additionally if you're comfortable using `adb` tool, you can use `adb shell pm revoke com.your.package android.permission.WRITE_EXTERNAL_STORAGE` (replacing the permission to the permission you want to reset) or `adb shell pm reset-permissions` to reset permissions on all apps. On iOS, if it is an app deployed via XCode, then I think uninstalling the app the permissions will reset
   
   Personally in my apps, I use the [diagnostics plugin](https://github.com/dpa99c/cordova-diagnostic-plugin) which gives me APIs to not only request appropriate permissions, but to also check the permission status. Then I provide proper user feedback depending on the permission status.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org