Phonegap plugin to a Construct 2 Plugin

For developers using the Construct 2 Javascript SDK

Post » Sat Sep 10, 2016 9:47 am

Hello ,
I have an issue i want to use a phonegap plugin (Events & action ... etc) in building an application using C2
Actually it is a phonegap plugin downloaded it from github (with www , src , package .... files) it is a cordova compatible plugin >> it is called "WifiWizard"

and i downloaded the C2 plugin template from here (runtime.js , edittime.js files) from scirra.com site

but i don't know actually where to find expressions , actions , parameters .. in phonegap plugin file and finally i can't convert it to C2 plugin because i am a beginner in such an issue

Any suggestions ??
Thanks in advance :)
B
3
Posts: 4
Reputation: 183

Post » Sun Sep 18, 2016 5:16 pm

@ashley
B
3
Posts: 4
Reputation: 183

Post » Mon Sep 19, 2016 10:32 am

You'll need to learn Javascript first. This is not a suitable project for a beginner.
Scirra Founder
B
398
S
236
G
88
Posts: 24,441
Reputation: 194,681

Post » Mon Sep 19, 2016 5:01 pm

So , there isn't any already completed plugin for this purpose ?!?
B
3
Posts: 4
Reputation: 183

Post » Mon Sep 19, 2016 5:16 pm

If you can't find it, then no, I guess.
Scirra Founder
B
398
S
236
G
88
Posts: 24,441
Reputation: 194,681

Post » Mon Sep 19, 2016 6:22 pm

Image

I Searched for wifi plugins and i found wifi plugins compatible with cordova in cocoon.io website but i don't know how to use them with C2 or how to convert them to C2 extensions

Any suggestions ?
B
3
Posts: 4
Reputation: 183

Post » Thu Sep 29, 2016 5:47 pm

Someone would need to build an interface(plugin) to interact with the phonegap plugin. The plugin your referring to would actually stay right on github. The construct 2 plugin would just grab the info it needs right from GitHub phonegap plugin. Using a github plugin over one hosted on npm servers would require you to make an adjustment to the config.xml file at export though(not overly difficult, just annoying to remember).

before tackling a phonegap plugin, read through the sdk manual and maybe get the hang Of it by building a simpler plugin. Maybe one that has an action that just calculates two numbers and returns them as an expression.
www.h1k3.tech

We are here for you!
B
87
S
22
G
16
Posts: 715
Reputation: 16,785


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests