NS 6+ compatibility: .enableLocationRequest() doesn't work
See original GitHub issueWhich platform(s) does your issue occur on?
- Android
- Android versions: 9
- Mi device running Android 9 custom rom
Please, provide the following version numbers that your issue occurs with:
- CLI: 6.1.2
- Cross-platform modules: 6.0.1
- Runtime(s):
"tns-android": 6.0.0
- Plugin(s):
"nativescript-geolocation": "5.1.0",
Please, tell us how to recreate the issue in as much detail as possible.
Describe the steps to reproduce it.
lib does not request for geolocation permissions in NS 6+ on using .enableLocationRequest()
method.
A simple log saying No v4 support
is added to console each time instead
The lib internally uses "nativescript-permissions": "~1.3.0"
which is outdated(I think so!?).
The library is currently at version 1.3.7 and is compatible with androidx according to the latest commits there.
Temporary solution
Installed the latest nativescript-permissions
library manually
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
How to implement Android Background service in a ...
I'm trying to create a background service for nativescript-geolocation to get notifications when an event has been triggered. I've found a lot ...
Read more >The NativeScript Book - Amazon S3
6 Using advanced layouts. 7 Styling NativeScript apps. PART 3: REFINING YOUR APP. 8 Working with data. 9 Native hardware. 10 Creating professional...
Read more >Why you should NOT use NativeScript | by Peter - Medium
Do not believe it. It won't work just like that. Turning your website to an Android/iOS App will going to be 6 months...
Read more >Geolocation - NativeScript Docs
enableLocationRequest (always?: boolean ... previously been denied then the settings app will open so the user can change the location services permission.
Read more >NativeScript nativescript-geolocation Issues - Giters
Plugin doesn't make my app build. Updated 4 months ago ... enableLocationRequest() not working on Android. Closed 2 years ago 1 ... NS...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
👋 @aaayushsingh, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please, use Stackoverflow to get help.
I solved it by adding:
nslocationalwaysandwheninuseusagedescription nslocationwheninuseusagedescription nslocationalwaysusagedescription
To myproject-info.plist in platforms/ios/myproject and make sure to include it in node_modules/nativescript-geolocation/platforms/ios/info.plist.