[Plugins] Construct2 Cordova Plugins

Post your completed addons to share with the community

Post » Fri Nov 21, 2014 3:54 am

Hi Cranberrygame,

I tested your original IAP plugin a few months ago, a lot has changed since then.

Back then, I built with XDK Android Crosswalk and I had to add a third party plugin with your github URL.

I notice you say now the integration is automatic, does that mean I just install the plugin for C2 and do nothing special in XDK? No need to add third party plugin with URL?
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Fri Nov 21, 2014 4:25 am

@Silverforce

If you only create xdk project with "Import an Existing HTML5 Project", then you don't need to manually add native plugins any more. (c2 will do all the native plugin install works for you automatically)

No need to add third party plugin with URL? Yes

See details about creating and building xdk project.
https://dl.dropboxusercontent.com/u/186681453/howto/how_to_build_crosswalk_and_fix_build_error/index.html

p.s Updated version focus on iOS IAP (integration with android and iOS). so see example capx and template capx
Last edited by cranberrygame on Fri Nov 21, 2014 4:27 am, edited 1 time in total.
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Fri Nov 21, 2014 4:27 am

cranberrygame wrote:@Silverforce

If you only create xdk project with "Import an Existing HTML5 Project", then you don't need to manually add native plugins any more. (c2 will do all the native plugin install works for you automatically)

No need to add third party plugin with URL? Yes

See details about creating and build xdk project.
https://dl.dropboxusercontent.com/u/186 ... index.html


Yup, I always did it via import existing HTML5 project. I'll try again with your updated IAP plugin without any third party URLs.

Also, great job on all the plugins. I'm testing the WebviewPlus performance plugin as well, hopefully there's some performance improvements.

iOS8's WK is crazy fast. :)
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Fri Nov 21, 2014 4:36 am

@Silverforce

Your reply also very fast. :D

You wiil be able to use iOS8's WK via phonegap soon.

Try

Thanks
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Fri Nov 21, 2014 4:41 am

I used the WebviewPlus plugin for XDK Crosswalk and game hangs on start up at loading bar.

Going to try it without it.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Fri Nov 21, 2014 4:43 am

I have a issue
Now i can check user's payment
but how i know how much user paid?
thx
B
17
S
7
Posts: 360
Reputation: 2,202

Post » Fri Nov 21, 2014 4:51 am

@Silverforce

Found some bug on android IAP, so wait for fixing it.

@fongka2

I will add it.

Thanks
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Fri Nov 21, 2014 4:55 am

cranberrygame wrote:@Silverforce

Found some bug on android IAP, so wait for fixing it.


Alright so the stuck on loading is due to the new version IAP plugin and not WebviewPlus? :)

I'll wait for the updated version.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Fri Nov 21, 2014 10:45 am

cranberrygame wrote:@Silverforce

If you only create xdk project with "Import an Existing HTML5 Project", then you don't need to manually add native plugins any more. (c2 will do all the native plugin install works for you automatically)


How do I install to an existing project though? e.g. the power management plugin. Thanks.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Fri Nov 21, 2014 3:45 pm

@Silverforce

Fixed issue.

Try

As for the stuck on loading, probably is the problem of WebviewPlus. (I guess)

For more info about WebviewPlus, go to github: https://github.com/ludei/webview-plus

Especially, try iOS IAP and let me know the result.

Thanks

@codah

Just use Power management plugin in c2

And export it

Caution when create xdk project (create like this):

C2 - Export project - Android (Crosswalk for Android) or PhoneGap (Android, iOS) - To some where for example D:\crosswalk\projectname

Xdk - +New Project - Import an Existing HTML5 Project - Import Project from: D:\crosswalk\projectname, Name your Project: projectname

For more information: https://dl.dropboxusercontent.com/u/186 ... index.html

Thanks
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest