Giter VIP home page Giter VIP logo

Comments (3)

NathanaelA avatar NathanaelA commented on August 17, 2024

I can't think of anything that shouldn't work in 3.0...

from nativescript-permissions.

rolaru avatar rolaru commented on August 17, 2024

@randy-johnson, I had the same issue as you did and in my case it was because I was using other plugins that had their own way of requesting permissions. Example: nativescript-geolocation recommends to require permissions using

if (!geolocation.isEnabled()) { geolocation.enableLocationRequest(); }

Once I deleted the above lines and requested the geolocation permissions using only @NathanaelA 's plugin (in my case android.Manifest.permission.ACCESS_FINE_LOCATION and android.Manifest.permission.ACCESS_COARSE_LOCATION) everything worked perfect.

from nativescript-permissions.

NathanaelA avatar NathanaelA commented on August 17, 2024

@randy-johnson - As a follow up; I've been using this plugin in several apps that are 3.x; no issues.
There are two reasons why I've seen this fail:

  1. You forgot to put in the permission you will be requesting in the Manifest, Event Android O requires this.
  2. You declined the permission before, and so the OS remembers your setting. To "undo" you can either go into security on your device and RESET all security; or sometimes just uninstalling the app fully from the phone will work
  3. What rolaru mentions, if another plugin overwrites the permission handler; then my permission handler won't see the permissions.

from nativescript-permissions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.