Giter Club home page Giter Club logo

Comments (5)

NeilCresswell avatar NeilCresswell commented on July 17, 2024 1

I found your plugin to be very useful thank you, so had a go at adding the new permissions for Android 13 and have submitted a PR:
#116

As well as the permissions the OP mentioned, POST_NOTIFICATIONS is now also needed if you want to do push notifications.

from cordova-plugin-android-permissions.

NeoLSN avatar NeoLSN commented on July 17, 2024

Currently, no plan.
If you have any plan to support this new feature. You can create a PR, I can help to release it.

from cordova-plugin-android-permissions.

NeilCresswell avatar NeilCresswell commented on July 17, 2024

@NeoLSN kindly merged in PR #116 already.

from cordova-plugin-android-permissions.

TDola avatar TDola commented on July 17, 2024

I am having some difficulty with this too.

I need to request, and check permissions, and close the app if the user rejects a permission.
That's fine, but on Android 33, I have to somehow know that, if your on 33, ask for read media, if your on less than 33, ask for external storage read. If you ask for both on 33, it ignores external storage read, then tells you you don't have permission when you check for it.
So how are you supposed to know what API version the phone has to know what to request?

Also, READ_MEDIA_IMAGES doesn't seem to actually work, it always returns false to the hasPermission and doesn't pop up asking for access on Android 33 Emulator.
When I try on my actual Android 33 phone (Pixel 7) it just works without the need for permission.
This is affecting cordova-camera gallery picker.

from cordova-plugin-android-permissions.

ghenry22 avatar ghenry22 commented on July 17, 2024

@TDola you can use the cordova diagnostic plugin core module to check the OS version. Then make the appropriate call using a simple if statement.

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.