rjblueskies's Recent Forum Activity

  • Hey , have you heard anything from cranberrygame?

  • Have we heard anything new on this ?

  • Hey sorry I'm just seeing this.

    I'm on version 221.

    I also just upgraded Intel XDK to the latest version and now it appears I can no longer import cordova plugins. Device and Splashscreen appear when I initially import, but then once I try importing IAP, they disappear and the IAP plugin doesn't appear either. When I attempt to re-add them, nothing happens and the plugins section of my project in Intel XDK remains empty. I read https://www.scirra.com/forum/viewtopic.php?f=146&t=170399&p=1024733&hilit=intel+xdk+plugins+not+importing#p1024733 and I'm not sure we will see a resolution to this...

    On a side note, I read https://www.scirra.com/forum/everyone-should-migrate-to-cocoon-io-asap-seriously_t167588?&hilit=intel+xdk+update. Maybe this is an alternative for now (seems to be better for performance)? I'm still very new to mobile game development and have been learning a ton.

    Thanks for messaging him! We'll see how this plays out.

  • Sorry it's taken me a bit to get back here. I've added everything (it's weird, device and splashscreen plugins disappeared after I added IAP - I had to re-add them), and the app opens.

    However, when I attempt to tap on the button to purchase I receive the error message: "Authentication is required. You need to sign into your Google Account."

    I tried adding the "com.google.playservices" but I still received the error message.

    Thoughts?

  • Ok, so I rebuilt the project from scratch (just testing the IAP function so it was easy) and I'm posting screenshots of my events, the files I've exported from C2 as well as the plugin I've added in Intel XDK. It's weird because when I use the emulator in XDK, it now gives me a popup window warning me about the IAP function (since it obviously can't link to the Google Play Store) but then displays a black screen. Maybe it won't do this when I upload the .apk to the Google Play Store...?

    Also, I'm building using Android Crosswalk - would this cause any problems?

    There's something I'm doing wrong but can't really put my finger on it.

    Btw, thank you so much for taking the time to look at this! I've been trying to figure this out for days.

  • My responses in bold.

    * Line 3: you call purchase product twice there... first when someone touch the "Button_ovo10" and then on line 3. This logic is not logic . Eep. I was messing around with it and forgot to fully undo some stuff I was trying.

    * Consume product should be under line 6 condition. So simply once it is successful, then you consume it. Cool. Fixed that. Didn't think of consuming it immediately after the user purchases it. Kind of a "doh" moment here.

    * Line 13 should not exist. It is being checked 60 times per second (if product is not restored/bought) for no reason. You should add those actions under observers. Is the Request store listing action only required to be used once at the start of the layout? It's not required to be used again after a purchase is purchased and consumed?

    But I doubt that this is the reason your app actually go black screened. I suggest removing and adding again the JS plugin in Intel XDK. I tried doing this, but it seems like I'm having problems still. I think I'm going to try rebuilding it in a brand new project. When I'm testing with Cranberry CordovaIAP in C2, is it normal for me to get zero response from touch events? The IAP object in C2 always gave me an error message at least to let me know it was there... This acts like I haven't included any events when I test.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hopefully this image posts correctly. I'm omitting the ovo100 product currently so don't mind the events I've disabled. I'm only focused on making "ovo10" work for now.

    I've included the billing key from my Android developer account.

    I've also included the Cordova IAP library in the plugin section of Intel XDK.

    It's so strange how nothing is responding when I test. I normally get an error message because it can't connect to Play store obviously, but since I switched to Cranberry CordovaIAP it does nothing. And when I download from Google Play, a brief white screen flash followed by an infinite black screen.

    Thank you for helping me with this!!!

  • I've been using C2 for a few months now, but have recently started getting into IAP testing. My goal is to have consumable purchases within my app. Since IAP within C2 doesn't support consumable items, I downloaded Cranberry CordovaIAP since it seems to be pretty popular and seems fairly easy to use.

    I recently purchased Cranberry Cordova IAP and am uploading a test application to the Google Play Store but am having two problems:

    1. The app doesn't appear to test correctly in C2. The button doesn't respond to purchase an item. I receive no popup error messages or anything. Just nothing when I click the button to purchase.

    2. When I use intel XDK and upload to the Google Play Store, I download on my phone to test but am met with a brief white flash before it's forever just a black screen.

    I have spent countless hours scouring forums, online tutorials, etc, to no avail. Everything I seem to find is at least a year old - I'm not sure if there have been changes since these older posts I've come across but nothing has seemed to work.

    Is there a tutorial or guide out there that shows how to use Cranberry CordovaIAP that is current?

rjblueskies's avatar

rjblueskies

Member since 9 Sep, 2015

None one is following rjblueskies yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies