You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/08/18 14:39:13 UTC

[GitHub] [cordova-plugin-geolocation] breautek commented on issue #252: GeoLocation permissions not being asked [SOLUTION]

breautek commented on issue #252:
URL: https://github.com/apache/cordova-plugin-geolocation/issues/252#issuecomment-1219578416

   Closing because unfortunately we use issues to track issues, not to track solutions...
   
   But I'll provide some insight for those who come across this post.
   
   Cordova geolocation plugin should request permission on the first time either `watchPosition` or `getCurrentPosition` is called. It doesn't necessarily request permissions when the application launches (and doing so may break some design rules). If the application has already been prompted and the user denied the prompt, then the system may automatically reject further permission requests. On iOS, denying a permission is always treated as a `DENIED_ALWAYS`, whereas Android as a checkbox giving the user a choice of always deny further permission requests.
   
   Nonetheless, I personally like using the diagnostic plugin because it does gives you further control in managing permissions and also what I use in my apps instead of relying on Cordova's basic permission implementation.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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