# Navigator.getCurrentPosition re-prompts for permission even if Geolocation plugin has permission

**URL:** <https://forum.ionicframework.com/t/navigator-getcurrentposition-re-prompts-for-permission-even-if-geolocation-plugin-has-permission/239227>\
**Category:** Ionic Angular\
**Created:** [January 22, 2024, 7:54pm UTC](https://forum.ionicframework.com/t/navigator-getcurrentposition-re-prompts-for-permission-even-if-geolocation-plugin-has-permission/239227 "2024-01-22T19:54:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahbu](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rahbu](https://forum.ionicframework.com/u/rahbu)\
**Post date:** [January 22, 2024, 7:54pm UTC](https://forum.ionicframework.com/t/navigator-getcurrentposition-re-prompts-for-permission-even-if-geolocation-plugin-has-permission/239227/1 "2024-01-22T19:54:26Z")

</div>

On device, calls to navigator.getCurrentPosition re-prompt for location permission even if @capacitor/geolocation Geolocation plugin has been granted permission.

Example: adding @capacitor/geolocation and buttons plus methods to one of the default Ionic apps

 ![Screenshot 2024-01-22 at 1.42.41 PM](https://global.discourse-cdn.com/ionicframework/original/3X/6/0/60d9f4cb9f0d5109edd00bd694584138efe4dda1.png)

has Geolocation.requestPermissions() and Geolocation.getCurrentPosition() work as expected but navigator.geolocation.getCurrentPosition() produces a new prompt asking for permission. Closing the app and repeating the procedure produces the same behavior. Closing the app and repeating for the third time now has navigator.geolocation.getCurrentPosition() succeed without a further permission prompt.

Similar issues have been resolved by injecting Platform and waiting for Platform.ready(), but that produces no change here. In our case, the navigator.geolocation.getCurrentPosition() calls are coming from a major third-party dependency, so simply removing the calls isn’t an option.

Example Repo: [GitHub - rahbu/geolocation-example](https://github.com/rahbu/geolocation-example)

Device info:  
iPhone 12 Pro  
iOS 17.2.1
