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

App Crash after installing nativescript-plugin-firebase #273

Open
jon26rite opened this issue Dec 14, 2020 · 0 comments
Open

App Crash after installing nativescript-plugin-firebase #273

jon26rite opened this issue Dec 14, 2020 · 0 comments

Comments

@jon26rite
Copy link

  • 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);
            });
        });
    });
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant