DavidHeacock
Posts: 0
Joined: Sun Jun 29, 2014 5:33 am

Installing PhoneGap plugin

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?

Kevin Preston
Posts: 0
Joined: Wed Oct 09, 2013 12:18 pm

Installing PhoneGap plugin

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

Kevin

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Installing PhoneGap plugin

Hi David and Kevin,

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

Kevin Preston
Posts: 0
Joined: Wed Oct 09, 2013 12:18 pm

Installing PhoneGap plugin

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Installing PhoneGap plugin

Hi Kevin,

Add this JS code via App settings/External resources.

DavidHeacock
Posts: 0
Joined: Sun Jun 29, 2014 5:33 am

Installing PhoneGap plugin

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.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Installing PhoneGap plugin

Hello David,

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

Kevin Preston
Posts: 0
Joined: Wed Oct 09, 2013 12:18 pm

Installing PhoneGap plugin

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Installing PhoneGap plugin

Hello Kevin,

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

Return to “Issues”