Giter Site home page Giter Site logo

Comments (8)

Gillardo avatar Gillardo commented on July 20, 2024

I get same with READ_EXTERNAL_STORAGE

from cordova-plugin-android-permissions.

bpocallaghan avatar bpocallaghan commented on July 20, 2024

Hi there - same is happening with READ_CONTACTS or GET_ACCOUNTS or WRITE_CONTACTS...
Thanks

from cordova-plugin-android-permissions.

bpocallaghan avatar bpocallaghan commented on July 20, 2024

Just want to add.
It seems that it is working if you upgrade cordova to the latest version (cli-8.0.0).
I removed my other plugins for the build to work - however it did ask me. Will update the current plugins and hopefully all should be good again.
Please shout if this also worked for you or not?
Thanks and Happy Coding...

from cordova-plugin-android-permissions.

mikeThurmond avatar mikeThurmond commented on July 20, 2024

@bpocallaghan,

I'm having the same issue, and am currently running cordova 8.0.0. I literally cannot request the permission

from cordova-plugin-android-permissions.

bpocallaghan avatar bpocallaghan commented on July 20, 2024

Hi @mikeThurmond
Seems the hook did not work, honesty not sure if this will work, as I did not work with this package since then (only do phonegap apps every so often)
Below is all the packages I have in my config for when I wanted to use the contacts plugin as well.

<preference name="phonegap-version" value="cli-8.0.0" />
    <preference name="deployment-target" value="8.0" />
    <preference name="android:minSdkVersion" value="16" />
    <preference name="android-targetSdkVersion" value="26" />
    <preference name="android-build-tool" value="gradle" />
    <preference name="AndroidPersistentFileLocation" value="Compatibility" />
    <engine name="cordova" spec="^8.0.0" />
    <engine name="cordova-ios" spec="^4.3.1" />
    <plugin name="cordova-plugin-device" spec="^2.0.1" />
    <plugin name="cordova-plugin-file" spec="^6.0.1" />
    <plugin name="cordova-plugin-geolocation" spec="^4.0.1" />
    <plugin name="cordova-plugin-inappbrowser" spec="^2.0.2" />
    <plugin name="cordova-plugin-network-information" spec="^2.0.1" />
    <plugin name="cordova-plugin-statusbar" />
    <plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
    <plugin name="cordova-plugin-analytics" spec="^1.4.3" />
    <plugin name="phonegap-plugin-barcodescanner" spec="^7.1.1" />
    <plugin name="cordova-plugin-sms" spec="^1.0.5" />
    <plugin name="cordova-plugin-contacts" spec="^3.0.1" />
    <plugin name="cordova-plugin-android-permissions" spec="^1.0.0" />
    <plugin name="cordova-plugin-camera" spec="^4.0.2" />
    <plugin name="cordova-plugin-advanced-http" spec="^1.11.1" />

Hopefully you notice something, or the package owner will be able to assist more. :)

from cordova-plugin-android-permissions.

mikeThurmond avatar mikeThurmond commented on July 20, 2024

@bpocallaghan, Thanks for responding. I actually edited a hook I found online to request WRITE_EXTERNAL_STORAGE and it works.

from cordova-plugin-android-permissions.

CyberCyclone avatar CyberCyclone commented on July 20, 2024

This is still an issue. requestPermission acts exactly like checkPermission for CAMERA and MANAGE_EXTERNAL_STORAGE permissions. Not working on Cordova 9.0.1. Fails with no errors or logs output.

from cordova-plugin-android-permissions.

GAGANsinghmsitece avatar GAGANsinghmsitece commented on July 20, 2024

Just for information, the WRITE_EXTERNAL_STORAGE can only be requested for API 30+(android 11). The plugin does not support a mechanism for requesting this permission. To solve the issue i developed a plugin, which requests the permission.
https://github.com/GAGANsinghmsitece/cordova-manage-external-storage

from cordova-plugin-android-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.