NativeScript / nativescript-geolocation

Geolocation plugin to use for getting current location, monitor movement, etc
Apache License 2.0
139 stars 76 forks source link

App Crash after installing nativescript-plugin-firebase #273

Open jon26rite opened 3 years ago

jon26rite commented 3 years ago

"nativescript-geolocation": "^5.1.0", "nativescript-plugin-firebase": "^10.6.3",

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

When I press the button tap then goes to this function it crash

private getDeviceLocation(): Promise {

    return new Promise((resolve, reject) => {
        Geolocation.enableLocationRequest().then(() => {
            Geolocation.getCurrentLocation({timeout: 10000}).then(location => {
                resolve(location);
            }).catch(error => {
                reject(error);
            });
        });
    });
}