Reinarte's Recent Forum Activity

  • Reinarte: Thanks for your prompt response!!!

    Here are some details: it is a single, managed, non-consumable in-app product.

    To your questions: yes, the product with product ID "xyz" is released when purchased. As far as I understand, the purchase of product "xyz" is stored in the Google Play account of the user.

    With the condition 'Has product' "xyz", the app checks on Google Play, if the user has purchased product "xyz". If that is true, an action in the app is triggered.

    My logic is: user buys product "xyz" once > Google stores purchase of product "xyz" indefinitely > app recognizes that product "xyz" has been purchased > action triggered

    If the user closes app or uninstalls the app and re-installs it later > the app still recognizes that product "xyz" has been purchased in the past > action triggered

    I am not sure, where I make an error in the logic. Are you saying, I cannot use the "Has product" condition for non-consumable products? If so, what would be the correct condition?

    Thank you in advance, Reinarte!!!

    PS: I understand the second issue with the failed purchase on the second attempt. That makes sense to me.

    Hello Cybersurfer5000,

    I will try to explain the way I understand.

    I know what products managed on Google is stored information email the person who made the purchase, but in the last update Billing API V3 In-app there is a problem because the storage is done locally.note at the end "Local Caching"

    I believe that's why I could never restore a purchase after reinstalling App.

    I already tried 3 different plugins and none managed to restore (CocoonJS, PhonegapIAP and IAP), so I believe it is not possible until someone shows me that it is possible.

    I have a game to be launched soon and I use it a extrategia to be able to restore purchases in the app,

    when the purchase is made is given also an achievement for the User, so I do the verification of achievement and release the User.

    this way works by verifying the achievement.

    that's the way I'm doing ....

    My game is incomplete in (mode site)

    GooglePlay - assure you that if you buy Part 2, you can reinstall the app that do not need to buy part 2 again ...

  • I was able to get the In-App Purchase working. However, the purchase is not remember. When the App is closed and re-opened, the user does not have the In-App Product any more. Trying to buy it a second time results in an "Alert" message via the browser object I set up (browser>Alert>Purchase failed).

    I went through all the tuts, read and reread forum posts & the phonegap instructions but can't figure it out. Does anybody spot where I did the mistake? I would appreciate any hint so much

    Here are screenshots of the Google Console In-App section & C2 of all actions related to the In-App Purchase:

    [attachment=1:1n163r6q][/attachment:1n163r6q]

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

    [attachment=2:1n163r6q][/attachment:1n163r6q]

    Hello Cybersurfer5000.

    Very calm, stay quiet and let's think about the logic.

    In your project when you purchase something is released right?

    So when you use the "product has" the same thing should be released also understand?

    The purchase failed because you already have it stored.

    If you clear the cache you will be able to do it again.

    The point is that you have to know how to work the logic to get the result that you expect.

    you can be more detailed and have more pictures to be able to help you.

  • Reinarte: I have exactly the same issue as ddaan9. However, I don't have the file "intelxdk.config.additions.xml". I exported using Cordova and imported it into Intel XDK. I have the Phonegap IAP 2.0.32 plugin and C2 R195.

    I hope you have a quick hint where I have to look to solve the issue.

    Cheers

    Sophia

    Hello Sophia,

    The file "intelxdk.config.additions.xml" is automatically created the Construct 2 R195 when u open your project in Intel XDK it will appear there next to your project files.

    The problem is how the AndreasR said, some lines will give an error at compile time ... The question is,, we have to change the lines that generate the error in the compilation by ones that will work,,

    you have to identify what or which lines are in trouble and replace them.

    Since the problem is in the IAP so put this line in place that will work in compiling .....

    "<intelxdk:plugin intelxdk:name="https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.iap#4306f62a0d9683eca8d8be135533dd92f6a446c1" intelxdk:value="https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.iap#4306f62a0d9683eca8d8be135533dd92f6a446c1" />"

    "<intelxdk: intelxdk plugin: name =" org.apache.cordova.inappbrowser "intelxdk: value =" org.apache.cordova.inappbrowser "/>"

    here are two lines replace them without the quotes.

  • <intelxdk:plugin intelxdk:name="https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.iap#4306f62a0d9683eca8d8be135533dd92f6a446c1" intelxdk:value="https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.iap#4306f62a0d9683eca8d8be135533dd92f6a446c1" />

    <intelxdk:plugin intelxdk:name="org.apache.cordova.inappbrowser" intelxdk:value="org.apache.cordova.inappbrowser" />

  • > Hello friend,

    > I would like to try to help you.

    > you are using the plugin Phonegap IAP 2.0.31? Construct 2 and the R195?

    > before compiling the project in Intel XDK onserve what is written in the file

    >

    > intelxdk.config.additions.xml

    >

    > if that party is present can be to solve in the next compilation

    >

    > <intelxdk: pluginintelxdk:name="https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.iap#4306f62a0d9683eca8d8be135533dd92f6a446c1"intelxdk:value="https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.iap#4306f62a0d9683eca8d8be135533dd92f6a446c1" />

    > <intelxdk: intelxdk plugin: name = "org.apache.cordova.inappbrowser" intelxdk: value = "org.apache.cordova.inappbrowser" />

    >

    > aki are 2 lines only.

    > Errado?

    >

    Thank you for your help.

    I do use Phonegap IAP 2.0.31 and Construct 2 R195. I removed the extra subevents like you said in your other post. When i check the files, i can see intelxdk.config.additions.xml.

    Since I'm not a coder i have no clue where i should put:

    <intelxdk: pluginintelxdk:name="https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.iap#4306f62a0d9683eca8d8be135533dd92f6a446c1"intelxdk:value="https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.iap#4306f62a0d9683eca8d8be135533dd92f6a446c1" />

    <intelxdk: intelxdk plugin: name = "org.apache.cordova.inappbrowser" intelxdk: value = "org.apache.cordova.inappbrowser" />

    Can you guide me? Really appreciate you taking the time to help me!!!!!

    PS: I do minify the script when exporting, is that ok?

    Hello friend,

    my file "intelxdk.config.additions.xml" is so.

    <intelxdk: pluginintelxdk:name="https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.iap#4306f62a0d9683eca8d8be135533dd92f6a446c1"intelxdk:value="https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.iap#4306f62a0d9683eca8d8be135533dd92f6a446c1" />

    <intelxdk: intelxdk plugin: name = "org.apache.cordova.inappbrowser" intelxdk: value = "org.apache.cordova.inappbrowser" />

    but in your project in the construct 2 PhonegapIAP plugin must be configured with your key to shopping at GooglePlay

  • Hello cranberrygame.

    you is of great help in this forum.

    I would ask you please, I need to check an achievement in GooglePlay Games is unlocked, in my project but the PhonegapGame plugin does not have that coomando, you could add new functions for the plugin in the next version please.

  • An example:

    Using a copy of the original IAP plugin and the plugin CocoonJSads is possible to make a new plugin "IAP2" adding the "Purchase product with preview" of CocoonJSads that is more elegant because displays the information before purchase.

    Another example:

    Place all Plugin GooglePlay commands in the plugin PhonegapGame 1.0.63

    because in PhonegapGame lack a lot, for example I can not verify that an achievement is unlocked.

    Needs a lot of knowledge in JavaScript?

  • Hello friend,

    I would like to try to help you.

    Another tip, you do not need to put "has product" and need not "store is avaliable."

    you can go straight, when you touch the object, buy the product

  • Hello friend,

    I would like to try to help you.

    you are using the plugin Phonegap IAP 2.0.31? Construct 2 and the R195?

    before compiling the project in Intel XDK onserve what is written in the file

    intelxdk.config.additions.xml

    if that party is present can be to solve in the next compilation

    <intelxdk: pluginintelxdk:name="https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.iap#4306f62a0d9683eca8d8be135533dd92f6a446c1"intelxdk:value="https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.iap#4306f62a0d9683eca8d8be135533dd92f6a446c1" />

    <intelxdk: intelxdk plugin: name = "org.apache.cordova.inappbrowser" intelxdk: value = "org.apache.cordova.inappbrowser" />

    aki are 2 lines only.

    Errado?

  • Hello friend, I have a different problem with audio when I export the project by Construct 2 R178 everything works ok as I did, but if I open the same file in capx Construct 2 R195 some audios not play when you start layout, this problem R195 is the version in my case.

  • Thank you very much! Everything works perfect again! Banner Ads, Fullscreen ads and GameCenter. Didnt test on Android

    My setup:

    C2 v178

    Cocoonjs 2.0.0

    Replaced Cocoonjs plugin (C:\Program Files\Construct 2\exporters\html5\plugins\cocoonjsads) with the files from .

    I had an issue where the projects didnt want to load after replacing the plugin folder.

    Deleting the "Game Center" Actions from the Old CJS plugin, and then replacing the plugin files solved the problem for me.

    Ashley, if possible, can scirra please replace the cjs plugin with this one: , also, if an action can't be loaded, the project (capx) should just load without that action.

    amigo,

    friend,

    you kept this plugin CocoomJS v2.0.0? I'm looking for him.

  • Try Construct 3

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

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

    I used the phonegap game plugin by cranberrygame to setup the Google Play Games Login. Maybe this template would help you.Kind regards

    AndreasR

    Hello AndreasR,

    Unfortunately in my game does not work at all, or with google or play with CocoonJS nor with Phonegap Game, I've done a lot of testing in these 3 plugins.

    Currently if you upgrade your supermarioclone design and republish it will operate normally with the newest plugins ???

    I wanted is the plugin CocoonJS v2.0.0 - 23/07/2014, as it is in c2runtime.js file of your game,

    I wonder if you still have this plugin or you already updated and no longer has this version ...

Reinarte's avatar

Reinarte

Member since 3 Jan, 2015

None one is following Reinarte yet!

Connect with Reinarte

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies