[Plugins] Construct2&3 Cordova Plugins

  • Pariunos

    You can PM me

    Thanks

    I sent you PM. Thanks!

  • Any chance of you adding a plugin for google play achievements and leaderboards

  • alvarop

    Ejecta Admob was added

    Try it

    DARTH Crusher

    Just started developing the plugin for google play achievements and leaderboards

    Thanks for your interest

  • Cool

    Launching my first game using your plugins tomorrow

    It'll be great to have decent ads in android apps at last

  • alvarop

    Ejecta Admob was added

    Try it

    DARTH Crusher

    Just started developing the plugin for google play achievements and leaderboards

    Thanks for your interest

    You're the best, I'll try it monday.

  • cranberrygame

    I am interested only in the IAP & AdMob plugins, is it possible for me to purchase only those (price?)? I have no need and no foreseeable need for all the others.

    PM me and I can send the $ via paypal to you.

  • PMed

    Thanks

  • I just tested the IAP plugin and it works, really nice, faster response than CocoonJS (without relying on their servers to manage it!!).

    I haven't tried if restore purchases work.

    cranberrygame How would you apply Restore Purchase with C2 & your plugin?

    I'm thinking to do a check on Is Store available "Has product (Premium)" => Set Premium = 1 or something like that, is that fine?

  • Phonegap IAP plugin modeled from standard c2 IAP plugin.

    So Phonegap IAP plugin support all standard c2 IAP plugin's functions exactly.

    Problem is that How we can use standard c2 IAP plugin with the intention which Ashley's thought.

    See example_phonegapiap_advanced_requires android application license key.capx

    Premium variable is equals to PhonegapIAP.Has product "adremover"

    so You can use the condition at the timing of wanting to know whether the product is purchased.

    If You want to set Premium variable at first, I can add the event "On restore purchases success" as say.

    "On restore purchases success" => "Has product (Premium)" => Set Premium = 1

  • cranberrygame

    Hi, Just bought the plugins.I sent you a PM.

    Tks

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • cranberrygame

    There's a big problem with the IAP functions.

    Purchase a product (unmanaged consumable item in Google Dev Console) can only happen once. After a product is purchased, it will not be able to purchase again, returning the On Any Purchase Failed trigger.

    I think you may need to change the code to consume the item, so that it is able to be purchased again.

    You have set it up as if it were a permanent Managed IAP.

    I have setup these 3 IAP in unmanaged mode (consumed, ie. repeatable IAP like potions or credits or gems etc). I just deactivated them to prevent users from buying since it would cause them to not consume it with the current plugin.

    [attachment=0:9pyig801][/attachment:9pyig801]

    Let me know if you can fix the issue soon, I'll check back tomorrow (its 2:15AM here).

  • cesisco

    Sent, enjoy

    Added "Consume product" action

    Try it. (plugin and example capx are updated, also)

  • I can confirm it now works. But your CAPX should be sorted like so:

    1. On Start of Layout => Add Product ID & Request Store Listing

    2. On Store Available => Consume product1, wait 0.1, Consume product2, wait 0.1, Consume product3 etc.

    I tested it your way (Has product => Consume) and it will only consume the first product out of many.

    My way works for all consumable IAPs, I believe there needs to be a delay between them to allow communications with Google servers.

    Also, to ensure they are consumed after purchase, add the Consume product into the events once Purchase Completed is called.

    Thanks for the quick fix, it's working great.

  • 1.

    How about:

    Has product "product1" => Consume "product1" and wait 0.1

    and another condition, Has product "product2" => Consume "product2" and wait 0.1

    and the other condition, Has product "product3" => Consume "product3"

    I think this is more accurate. (I didn't test this event, If possible test and let me)

    2.

    to ensure they are consumed after purchase, add the Consume product into the events once Purchase Completed is called ==> see updated example capx

    Thanks for your test reporting.

  • It won't work because the condition like that in parallel gets triggered simultaneously. It will check all those Has product in that tic/frame and try to spam consume product (which communicates to Google).

    If its not parallel, then the 2nd product condition depends on the first being true etc, so it wouldn't be a good way to do it.

    Condition (On Store Available) => Consume product1, wait 0.1, Consume product2, wait 0.1, Consume product3 etc.

    [attachment=0:1dopo7ro][/attachment:1dopo7ro]

    Ignore the conditions between the first and the last. This works for my game.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)