question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NS 6+ compatibility: .enableLocationRequest() doesn't work

See original GitHub issue

Which 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:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
support[bot]commented, Oct 10, 2019

👋 @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.

1reaction
Prefix1802commented, Oct 8, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found