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

Calling enableLocationRequest too early does not trigger popup #77

Open

Description

@jamesward

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.

Activity

  1. indianazhao commented on Oct 17, 2017

    @indianazhao

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions