nativescript-geolocation icon indicating copy to clipboard operation
nativescript-geolocation copied to clipboard

App Crash after installing nativescript-plugin-firebase

Open jon26rite opened this issue 5 years ago • 0 comments

  • CLI: 6.5.1
  • Cross-platform modules: "name": "tns-core-modules", "nativescript": { "platforms": { "ios": "5.0.0", "android": "5.0.0" } },
  • Runtime(s):
    "tns-android": { "version": "6.5.0" }, "tns-ios": { "version": "6.5.0" }
  • Plugin(s):

"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);
            });
        });
    });
}

jon26rite avatar Dec 14 '20 01:12 jon26rite