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.

Performing enableLocationRequest always hangs forever on iOS 12.X #227

@crowmagnumb

Description

@crowmagnumb

Which platform(s) does your issue occur on?

iOS devices and emulators running 12.X

iPad Pro: iOS 12.2
iPhone 7: iOS 12.3.1
emulator iPhone Xs: iOS 12.1

I do not experience the problem on an iPhone 5s: iOS 9.3.2

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

  • CLI: 5.0.3
  • Cross-platform modules: tns-core-modules: 5.1.2
  • Runtime(s): tns-android: 5.0.0, tns-ios: 5.0.0
  • Plugin(s): nativescript-geolocation: 5.0.0

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

Simply put the following code never resolves on iOS 12.X. The promise is neither resolved nor rejected.

import * as geolocation from "nativescript-geolocation";

...

geolocation.enableLocationRequest(true, true)
 .then(() => {
     console.log("User Enabled Location Service");
})
.catch(ex => {
    console.log("Unable to Enable Location", ex);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions