Skip to content

[@nativescript/geolocation] IOS enableLocationRequest hangs forever if 'Alow Once' is selected #386

Closed
@valera1401

Description

@valera1401

case CLAuthorizationStatus.kCLAuthorizationStatusAuthorizedWhenInUse: if (this._resolve && !this.authorizeAlways) { LocationMonitor.stopLocationMonitoring(this.id); this._resolve(); } break;

The problem is in this code.

If enableLocationRequest function was called with parameter always == true and 'Allow once' option is selected in the permission popup, then AuthorizationStatus will be kCLAuthorizationStatusAuthorizedWhenInUse and resolve will never be called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions