[Plugins] Construct2 Cordova Plugins

Post your completed addons to share with the community

Post » Mon Sep 01, 2014 5:35 pm

@cranberrygame Is it possible to retrieve input from the SoftKeyboard?

Edit: Also, the LocalNotification plugin seems to have a dependancy for PhoneGapLocalNotification_plugin.js which is preventing Construct 2 preview in browser from working, is there a way to bypass that somehow?
B
25
S
6
G
3
Posts: 197
Reputation: 3,355

Post » Tue Sep 02, 2014 2:08 am

@cranberrygame

I am interested only in the IAP & AdMob plugins just like SilverForce, could you cut me the same deal?

Thank you!
Image
Download my game ROWyerBOAT on android for free here!
B
8
S
2
G
1
Posts: 39
Reputation: 671

Post » Tue Sep 02, 2014 2:35 am

@megapowerskills

It is needed to investigate into the point.
I'll give you a PM then.

@TwinTails

1.Not possible
2.Updated plugin bypass Construct 2 preview in browser, so just update.

@goodwill295

PMed
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 » Tue Sep 02, 2014 5:02 pm

I am not sure exactly the process for restoring purchases for a user.

Is this the correct process? (* = event)

* On start of layout
Add product IDs "IDgoeshere"
Request store listing

* On touched "restore_button"
Restore purchases

Then the part where I am a little confused is what event to use to see if purchase is restored.

Should I just do:
* Has product "IDgoeshere"
(actions for after purchase here)

or does it trigger the "on purchase success" event again?

* On product "IDgoeshere" purchase success
(actions for after purchase here)

Thanks :)
B
63
S
12
G
6
Posts: 456
Reputation: 8,981

Post » Tue Sep 02, 2014 5:32 pm

@cranberrygame Ah, no problem. I downloaded 1.0.11 from the members area but it's not fixed, can you upload the update?
B
25
S
6
G
3
Posts: 197
Reputation: 3,355

Post » Tue Sep 02, 2014 5:49 pm

@russpuppy

If you called "Request store listing" at once, you need to call "restore purchases" not any more.

so, for example)

Add product IDs "IDgoeshere"
Request store listing
...
if you want to know you have purchased specific product, you can use condition Has product "IDgoeshere".

@TwinTails

I tested PhoneGapLocalNotification 1.0.11
PhoneGapLocalNotification silences in Construct 2 preview in browser.
Let me see your error message screen capture.
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 » Tue Sep 02, 2014 6:59 pm

thanks for your quick reply @cranberrygame

I am running into an issue where "has product" is triggered as true even after I have cancelled the test order in my developer wallet merchant center. Do you know how the google servers work, if it takes a while for cancellations to go through or something? Or is this how it is intended to function?

edit: See "purchaseState" on this page: https://developers.google.com/android-p ... s/products - is it possible to get the purchase state to discern purchased orders from cancelled orders?
B
63
S
12
G
6
Posts: 456
Reputation: 8,981

Post » Tue Sep 02, 2014 7:10 pm

@cranberrygame My mistake, I don't think I restarted Construct 2 when I installed the update... Thanks!
B
25
S
6
G
3
Posts: 197
Reputation: 3,355

Post » Tue Sep 02, 2014 7:26 pm

@russpuppy

If you want detect server cancelled product, you can call action "restore purchases" before check condition "has product"

If consider purchaseState cancel, the plugin will be more complicated and it won't be so desiriable.

@TwinTails

Good!
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 Sep 05, 2014 12:28 pm

For example is tested Phonegap File plugin, but it not work on preview.
Is it working only in test mode in intel XDK and export or it should work in preview ?
I'm a little bit confuse ^^
http://armaldio.xyz - Image - Join now our Discord Server ;) - https://discord.gg/0eLPLj96B4tUr1D3
B
56
S
16
G
1
Posts: 249
Reputation: 5,721

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest