Comments (14)
Had the same problem. Forgot to add video permission to Android Manifest after platfrom remove, platform add
. Everyone having the same issue, double-check your AndroidManifest.xml, it should contain either one or both of these
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
from cordova-plugin-android-permissions.
So you mean if you just only put camera permission will not work on your device and if you put more permissions with camera permission it will work, right?
from cordova-plugin-android-permissions.
Yes, for some reason I can see the permissions popup if I don t manually tweak the plugin and add an extra one. Do you know what might be the reason?
from cordova-plugin-android-permissions.
*can t
from cordova-plugin-android-permissions.
I still can not reproduce this issue. Are you still facing this issue?
from cordova-plugin-android-permissions.
Yes i specifically see this happening, not popup, and directly goes to error callback. haven't tried with multiple permissions.
from cordova-plugin-android-permissions.
I tested on an acer iconia 10 (android 6) with
permissions.requestPermission(permissions.ACCESS_FINE_LOCATION , success, error);
no popup either..
it go to ....
function success( status ) {
if( !status.hasPermission ) error(); // it goes to this one
}
from cordova-plugin-android-permissions.
I'm also not seeing the permissions dialog when I'm running my app in the emulator. I do a checkPermissions and it goes to the success callback that looks like this:
var permissionsSuccess = function(status) {
if (status.hasPermission) {
console.log("Yay! we got permission!");
} else {
console.log("Requesting permission.");
permissions.requestPermission(permissions.PACKAGE_USAGE_STATS, (status) => {
if( !status.hasPermission ) { permissionsError("You just can't win!") };
}, permissionsError);
}
}
It immediately displays "Requesting permission." and then "You just can't win!" in the CLI console. Any help with this would be awesome!
from cordova-plugin-android-permissions.
Same problem here today. The popup/dialog is just not showing for whatever reason. CheckPermissions works fine, however request just doesn't. I tried everything and it just doesn't work
from cordova-plugin-android-permissions.
my issue has been resolved,
in my case I checked the use-permission on AndroidManifest.xml.
but missing the request permission on the AndroidManifest.xml.
I do not know the cause, but it was gone.
I added permission and it was displayed dialog.
from cordova-plugin-android-permissions.
Same issue when requesting permission permission dialog not showing. i checked the manifest permission is already there. And it goes directly goes to rejected without even asking. When using checkPermission method it retuns true even if permission not granted. This plugin is useless so far
from cordova-plugin-android-permissions.
I have found that my permission request call was called twice for some reason, probably ionic issue. I don't think I can reproduce it anymore.
from cordova-plugin-android-permissions.
@mlshv Thank you so much! I'm a beginner and found this cordova plugin before researching Android permissions in general. I had no idea I needed this as well.
@NeoLSN Thanks for this plugin! Perhaps the manifest instructions can be included in README instructions?
For anyone in the future who, like me, is trying to use video and audio for WebRTC, in addition to RECORD_AUDIO and CAMERA, I also needed MODIFY_AUDIO_SETTINGS for audio to work:
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
from cordova-plugin-android-permissions.
Had the same problem. Ended by adding this in my config.xml (cordova 9+) :
...
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
</config-file>
...
</platform>
...
from cordova-plugin-android-permissions.
Related Issues (20)
- NFC permissions Not Working HOT 1
- Cordova Permissions not working Quasar HOT 1
- Any way to "Predict" if User will be prompted for Permission? HOT 3
- How can i check `MANAGE_EXTERNAL_STORAGE`(all file access) in android? HOT 7
- BLUETOOTH_CONNECT permission missing in permissions.js HOT 2
- Background Location permission issue HOT 5
- BLUETOOTH_CONNECT + BLUETOOTH_SCAN missing for Android +10 HOT 4
- plugins/cordova-plug…w/permissions.js:38 Uncaught SyntaxError: Unexpected token ':' HOT 1
- Support Android 13 (API 33) HOT 5
- BLUETOOTH_SCAN doesn't show confirm dialog to the user HOT 4
- Android 13 SDK 33 - no dialog HOT 5
- uses-feature and camera request in Ionic 6 HOT 3
- POST_NOTIFICATION not working HOT 15
- Camera permission is not turned on?? HOT 1
- android build faild HOT 1
- Permissions not popping up HOT 8
- Storage permission not showing up HOT 2
- BSF Cordova Ecosystem Crowdfunding Plan HOT 2
- POST_NOTIFICATIONS don't work for Android 10 HOT 1
- Trouble with requesting SCHEDULE_EXACT_ALARM permission for Android 14 HOT 1
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 cordova-plugin-android-permissions.