Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support Android 11+ #340

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MaximBelov
Copy link

No description provided.

@pcaselas
Copy link

pcaselas commented Jun 7, 2023

Is this supposed to work? It's not working for me on android 13 with target sdk 31.

@MaximBelov
Copy link
Author

MaximBelov commented Jun 7, 2023

config.xml

    <preference name="AndroidXEnabled" value="true" />
    <preference name="GradlePluginGoogleServicesEnabled" value="true"/>
    <preference name="GradlePluginGoogleServicesVersion" value="4.3.3" />
    <preference name="GradlePluginKotlinEnabled" value="true" />
    <preference name="GradlePluginKotlinVersion" value="1.8.0" />
    <preference name="android-minSdkVersion" value="22" />
    <preference name="android-targetSdkVersion" value="32" />
    <preference name="android-compileSdkVersion" value="32" />
    

add to package.json
"cordova-plugin-file-opener2": "git+https://github.com/MaximBelov/cordova-plugin-file-opener2.git#4.0.0-custom",

@pcaselas
Copy link

pcaselas commented Jun 7, 2023

Will try and let you know! Many thanks mate!

@pcaselas
Copy link

pcaselas commented Jun 8, 2023

Does not work for me, are you able to open a PDF with acrobat reader as the viewer? For me, it does with google drive but not acrobat reader, probably because they have different file permissions needs or something like that

@MaximBelov
Copy link
Author

its works with any files on any Android version

please create a demo repository like this

https://github.com/MaximBelov/cordova-plugin-chooser-lab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants