eyalin / community-cordova-plugin-file-opener Goto Github PK
View Code? Open in Web Editor NEWThis project forked from pwlin/cordova-plugin-file-opener2
A File Opener Plugin for Cordova
License: MIT License
This project forked from pwlin/cordova-plugin-file-opener2
A File Opener Plugin for Cordova
License: MIT License
Hi,
I'm using ionic 5
with the new android api I had to set my cdvTargetSdkVersion to 33 in the Gradle properties to support android 11+
The plugin is installed following the readme guidelines. It compiles with no issues and it's working with iOS when I try to upload an image for the user's profile in the app.
The problem comes when I try to do the same on Android, it shows a log in console that says Error: 20
when I try to call the camera plugin this.camera.pickFile(CameraSourceType.GALERY, CameraMediaType.ALL)
pickFile(sourceType, mediaType): Observable<string> {
let cameraOptions = {
destinationType: this.camera.DestinationType.DATA_URL,
sourceType: this.camera.PictureSourceType.PHOTOLIBRARY,
allowEdit: false,
mediaType: 0,
targetWidth: 512,
targetHeight: 512
};
return from(this.camera.getPicture(cameraOptions)).pipe(
map(res => {
return 'data:image/jpeg;base64,' + res;
})
);
}
I have checked the android permissions are set correctly in the android manifest
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Is there anything I may be missing?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.