Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Calling enableLocationRequest too early does not trigger popup #77

Open
jamesward opened this issue Oct 15, 2017 · 1 comment
Open

Calling enableLocationRequest too early does not trigger popup #77

jamesward opened this issue Oct 15, 2017 · 1 comment

Comments

@jamesward
Copy link

Which platform(s) does your issue occur on?

iOS emulator and physical device

Please, provide the following version numbers that your issue occurs with:

  • CLI: 3.2.1
  • Cross-platform modules: 3.2.0
  • Runtime(s): tns-ios
  • Plugin(s): "nativescript-geolocation": "4.1.0"

Please, tell us how to recreate the issue in as much detail as possible.

Call geolocation.enableLocationRequest() on navigatingTo causes an error Location service is disabled and does not trigger the request location access popup. Switching to a loaded event solves this.

Not sure if this just needs to be documented or if there is a fix possible.

@indianazhao
Copy link

In angular, I call enableLocationRequest() from a setTimeout function in ngOnInit().

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants