M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Third Party / Cordova Plugins

hi,

I am using a third party camera App as I need to be able to access the front camera. The third party plugin has some xml files (I guess layout and stuff). So in appery to which folder do I upload the xml files?

I am testing it out myself but I thought I'd post a question while I do my tests - as I am running short of time

Thanks,
M&M

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Third Party / Cordova Plugins

Hi,

Depends on file name. May be you need to add values from your file to already existed one.

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Third Party / Cordova Plugins

hi,

Oke thanks...lemme check it out.

Cheers,
M&M

AndyM
Posts: 0
Joined: Sun May 22, 2016 4:06 pm

Third Party / Cordova Plugins

Hi
I am having trouble running a 3rd party plugin that I got from here:
https://github.com/Telerik-Verified-P...
The project apk builds just fine but I cannot access any plugin functionality when I install the app on Android

The plugin was mported into my Appery project as described here :
https://devcenter.appery.io/documenta...

in the section "Importing Cordova Plugins". Verified that the plugin is enabled in the "Cordova Plugins-Imported cordova plugins" tab of the Project settings.

When I try to call the plugin getPictures() method like so:

I get the following error:
window.plugins.imagePicker.getPictures is not a function
I tried printing out the Appery plugins object :

alert(JSON.stringify(window.plugins));

and I get the following:
{"imagePicker":{},"gaPlugin":{}}
It appears that the imagePicker object is empty.

Verified that by printing all properties of the imagePicker object:

var str = "";

Code: Select all

 for (var myprop in window.plugins.imagePicker) { 
     str += (myprop + ": " + window.plugins.imagePicker[myprop] + "\n"); 
 } 

alert(str);
But the string is empty.

Any ideas?
Additional questions:
1.I could not find the imported plugin anywhere in the source view. Where is it stored?

  1. Has anyone successfully used a camera preview and an album image picker plugins in appery? If so, please share your experience and what plugins were used
    Thanks Andy
M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Third Party / Cordova Plugins

yup, I have tried it with the latest version of their library and it works on Android. You should be able to see it under Project - App Settings - Cordova Plugins - Imported Cordova Plugins. Just make sure that you 'check' the checkbox so that the plugin gets included in the project. Here's a screenshot

Image

AndyM
Posts: 0
Joined: Sun May 22, 2016 4:06 pm

Third Party / Cordova Plugins

That' good news! Could you provide a link to the to the github repository for the plugin you're using?
There are multiple plugins called ImagePicker. The one I tried has the id com.synconset.imagepicker and version 2.1.3
Also, I'm looking for a camera preview plugin - so far I've been unsuccessful in finding the one that would build in appery.
Thanks
Andy

Return to “Issues”