You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 8, 2023. It is now read-only.
LocationRequest() from plugin crash the app [BUG] #259
App just crash... No any log displayed after crush
Using nativescript 6.5.0 with Angular 8.0
I am using also Android device with wifi and geolocation on
UPDATE
After debugging I found line which crash the app it is 91 function _getLocationRequest(options) var mLocationRequest = new com.google.android.gms.location.LocationRequest()
Adding on to vforv's answer, I created a file called before-plugins.gradle in the same directory as app.gradle and added in the following content (NativeScript loads the file automatically):
I found that it could be a combination of things, please make sure to include this information in the readme:
If you guys installed this using the companion app (Nativescript-sidekick) you will find that you MUST use the tool to install dependencies and plugins, if for some reason you switch to the CLI, make sure to delete and recreate your configurations, looks like the files created by these are different.
In theory, these permissions should be included automatically.
Now, this didn't solve my problem, I use a combination of GoogleMaps and Geolocalization, and other plugins, these plugins set up or add/use configurations of GooglePlayServices, this is a problem, it means we need to match the version of the services, in this case, I will use the nice hook that @neil-119 uses, ( i didn't know Nativescript handles before, after plugins.). This makes my configuration work.
Activity
[-]Plugin just crash the app[/-][+]LocationRequest() from plugin crash the app [BUG][/+]Cloudxyz commentedon Apr 26, 2020
I have this issue too, i not found the line, because i dont know where search
juanpicuervo commentedon Apr 29, 2020
I have this issue too, i cannot use this feature :(
vforv commentedon Apr 29, 2020
add this to the app.gradle
neil-119 commentedon Jun 4, 2020
Adding on to vforv's answer, I created a file called
before-plugins.gradlein the same directory asapp.gradleand added in the following content (NativeScript loads the file automatically):This solved it for me.
aosi87 commentedon Jun 22, 2020
I found that it could be a combination of things, please make sure to include this information in the readme:
If you guys installed this using the companion app (Nativescript-sidekick) you will find that you MUST use the tool to install dependencies and plugins, if for some reason you switch to the CLI, make sure to delete and recreate your configurations, looks like the files created by these are different.
So in my case:
In theory, these permissions should be included automatically.
Now, this didn't solve my problem, I use a combination of GoogleMaps and Geolocalization, and other plugins, these plugins set up or add/use configurations of GooglePlayServices, this is a problem, it means we need to match the version of the services, in this case, I will use the nice hook that @neil-119 uses, ( i didn't know Nativescript handles before, after plugins.). This makes my configuration work.
Now, something I found by playing around:
You can do this:
And also this:
I hope this solves problems and speeds up your dev, it took me almost a day to find these problems for my current configuration. Cheers.