Comments (3)
I can't think of anything that shouldn't work in 3.0...
from nativescript-permissions.
@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.
@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:
- You forgot to put in the permission you will be requesting in the Manifest, Event Android O requires this.
- 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
- 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)
- tns-platform-declarations doesn't have android.Manifest HOT 3
- Permissions catching error when trying to use camera or video recorder HOT 1
- Can't request permission ACTIVITY_RECOGNITION HOT 1
- Property 'Manifest' does not exist on type 'typeof android' HOT 2
- Android Permissions are firing weirdly HOT 4
- java.lang.IllegalArgumentException: permission is null HOT 2
- support nativescript 4.0+ HOT 2
- Support for "markingMode" flag HOT 1
- Cant request 'ANSWER_PHONE_CALLS' HOT 8
- WRITE_SETTINGS permission HOT 1
- Unable to request 'android.permission.BIND_DEVICE_ADMIN' HOT 4
- Webpack: Android is not defined HOT 5
- hasPermission function returns always false HOT 6
- "no v4 support" when requesting permission HOT 5
- App to app permissions HOT 1
- Cant request for READ_PRIVILEGED_PHONE_STATE permission HOT 3
- Compile Time Error for 1.3.12 HOT 3
- Can't resolve '@master.technology/permissions' in version 1.3.12 HOT 31
- Behavior on IOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-permissions.