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

added support for android 13 #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jimmynguyenIG
Copy link

@jimmynguyenIG jimmynguyenIG commented Aug 24, 2023

Platforms affected

android

Motivation and Context

Added support for android 13 (API level 33). Note that this mi-corporation version of the Apache plugin is based on version 2.4.1 of the Apache cordova-plugin-camera plugin. I applied the changes necessary to support android 13 in order to support modern android apps.

Description

For reference I looked at PR apache#844 in the apache cordova-plugin-camera repository:
apache#844

I applied the same changes, namely requesting the permission READ_MEDIA_IMAGES in place of READ_EXTERNAL_DATA. This requirement is documented here:
https://developer.android.com/about/versions/13/behavior-changes-13

Testing

I placed an updated copy of the corodva-plugin-camera source code on my local file system and updated my config.xml and package.json files to pull cordova-plugin-camera from this local folder rather than from a repote repository.

I built the main cordova app (Ideagen Smartforms) using our android build process, and installed the resulting .apk file into an Android Emulator running version android 13 (API level 33).

I tested Smartforms and confirmed from the Image Annotation field I could load images from the local photo gallery and also take pictures from the camera.

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.

1 participant