Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
cordova-plugin-advanced-imagepicker
Advanced tools
Cordova Plugin for an advanced (multiple) ImagePicker
This Cordova Plugin is for a better (multiple) ImagePicker with more options.
It currently uses Yummypets/YPImagePicker (Version 5.2.1
) on iOS and
ParkSangGwon/TedImagePicker (Default-Version 1.2.8
) on Android.
This Plugin is in active development!
This and other Open-Source Cordova Plugins are developed in my free time. To help ensure this plugin is kept updated, new features are added and bugfixes are implemented quickly, please donate a couple of dollars (or a little more if you can stretch) as this will help me to afford to dedicate time to its maintenance. Please consider donating if you're using this plugin in an app that makes you money, if you're being paid to make the app, if you're asking for new features or priority bug fixes.
Table of Content
>= 9.0.0
>= 9.0.0
Because the used Framework uses AndroidX and is developed in Kotlin, make sure to enable AndroidXEnabled
and GradlePluginKotlinEnabled
:
<preference name="AndroidXEnabled" value="true"/>
<preference name="GradlePluginKotlinEnabled" value="true"/>
This Plugin is developed in Swift and automaticaly adds the Plugin to Support Swift.
I developed it, testing with cordova-ios@6.1.0.
gun0912.ted:tedimagepicker
/ default to 1.2.8
The iOS platform defines:
You can easily change them, by configure your config.xml by:
<edit-config file="*-Info.plist" mode="merge" target="NSCameraUsageDescription">
<string>your text</string>
</edit-config>
The plugin is available via a global variable named window.AdvancedImagePicker
.
A TypeScript definition is included out of the Box. You can import it like this:
import AdvancedImagePicker from 'cordova-plugin-advanced-imagepicker';
If an Error appeared this Plugin returns an Object in the failureCallback, that always has the following Structure:
{
"code": 0,
"message": "Some additional Info"
}
The code
is one of the Error Codes and always present, while the message
can be empty.
This is mostly something like an Exception Message.
The following Error Codes can be fired by this Plugin:
They can be accessed over for Example window.AdvancedImagePicker.ErrorCodes.UnsupportedAction
and are present in the TypeScript definition too of course.
The list of available methods for this plugin is described below.
Open the ImagePicker
window.AdvancedImagePicker.present({
// config here
}, function(success) {
console.log(success);
}, function (error) {
console.error(error);
});
This Methode returns an Array of Objects with the following fields:
'image'
| 'video'
) - type of selected fileCleans the files that were stored in the tmp file directory
window.AdvancedImagePicker.cleanup(function() {
console.log('success');
}, function (error) {
console.error(error);
});
The full Changelog is available here
FAQs
Cordova Plugin for an advanced (multiple) ImagePicker
We found that cordova-plugin-advanced-imagepicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.