Page 1 of 1

Installing PhoneGap plugin

Posted: Thu Jul 03, 2014 2:01 pm
by DavidHeacock

I'm trying to follow this tutorial to install a PhoneGap (https://github.com/kdzwinel/phonegap-...) plugin but the app can't see the javascript methods. Is there any more specific advice available about adding PhoneGap plugins to a project?

Has anyone else managed to get PhoneGap plugins to work in the online editor?


Installing PhoneGap plugin

Posted: Thu Jul 03, 2014 2:53 pm
by Kevin Preston

I've been trying for nearly four days without success, what problems are you finding?

Kevin


Installing PhoneGap plugin

Posted: Thu Jul 03, 2014 3:01 pm
by Kateryna Grynko

Hi David and Kevin,

Do you follow this tutorial? http://devcenter.appery.io/documentat...
Have you added all files as described?


Installing PhoneGap plugin

Posted: Thu Jul 03, 2014 3:29 pm
by Kevin Preston

I think so - I've tried it enough times!

Should this

code<script type="text/javascript" src="files/resources/lib/cordova_plugins&#46;js">
</script>/code

be present in the .html page? It is not mentioned in your documentation but cordova_plugins.js has the reference to

code{
"file": "plugins\com&#46;phonegap&#46;plugins&#46;BackgroundGeoLocation\www\BackgroundGeoLocation&#46;js",
"id": "com&#46;phonegap&#46;plugins&#46;BackgroundGeoLocation",
"clobbers": [
"BackgroundGeoLocation"
]
}/code

so it looks like it should be there.

Kevin


Installing PhoneGap plugin

Posted: Thu Jul 03, 2014 6:46 pm
by Kateryna Grynko

Hi Kevin,

Add this JS code via App settings/External resources.


Installing PhoneGap plugin

Posted: Fri Jul 04, 2014 7:51 am
by DavidHeacock

Hi Katya, I tried to follow that tutorial, but I couldn't really match up the locations described in the tutorial with those in the source directories. I will try adding the JS code to the AppSettings external resources.


Installing PhoneGap plugin

Posted: Fri Jul 04, 2014 7:54 am
by Evgene Karachevtsev

Hello David,

Thank you for the update. Do not hesitate to contact us if you need any further help.


Installing PhoneGap plugin

Posted: Fri Jul 04, 2014 9:00 am
by Kevin Preston

Adding the JS doesn't help. Is there any chance of a response to my
other associated query

https://getsatisfaction.com/apperyio/...

I am not asking for you to make the app work I just want to resolve how to add the plugin so that 'undefined' doesn't get returned.

Kevin


Installing PhoneGap plugin

Posted: Fri Jul 04, 2014 9:09 am
by Evgene Karachevtsev

Hello Kevin,

We are working on your issue and will get back to you with update here: https://getsatisfaction.com/apperyio/...