Page 14 of 107

Re: [Plugin] Phonegap related plugins (+Crosswalk)

PostPosted: Mon Sep 01, 2014 5:35 pm
by TwinTails
@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?

Re: [Plugin] Phonegap related plugins (+Crosswalk)

PostPosted: Tue Sep 02, 2014 2:08 am
by goodwill295
@cranberrygame

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

Thank you!

Re: [Plugin] Phonegap related plugins (+Crosswalk)

PostPosted: Tue Sep 02, 2014 2:35 am
by cranberrygame
@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

Re: [Plugin] Phonegap related plugins (+Crosswalk)

PostPosted: Tue Sep 02, 2014 5:02 pm
by russpuppy
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 :)

Re: [Plugin] Phonegap related plugins (+Crosswalk)

PostPosted: Tue Sep 02, 2014 5:32 pm
by TwinTails
@cranberrygame Ah, no problem. I downloaded 1.0.11 from the members area but it's not fixed, can you upload the update?

Re: [Plugin] Phonegap related plugins (+Crosswalk)

PostPosted: Tue Sep 02, 2014 5:49 pm
by cranberrygame
@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.

Re: [Plugin] Phonegap related plugins (+Crosswalk)

PostPosted: Tue Sep 02, 2014 6:59 pm
by russpuppy
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?

Re: [Plugin] Phonegap related plugins (+Crosswalk)

PostPosted: Tue Sep 02, 2014 7:10 pm
by TwinTails
@cranberrygame My mistake, I don't think I restarted Construct 2 when I installed the update... Thanks!

Re: [Plugin] Phonegap related plugins (+Crosswalk)

PostPosted: Tue Sep 02, 2014 7:26 pm
by cranberrygame
@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!

Re: [Plugin] Phonegap related plugins (+Crosswalk)

PostPosted: Fri Sep 05, 2014 12:28 pm
by armaldio
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 ^^