Artpunk's Recent Forum Activity

  • authenticate should be working i usually activate it at start of layout on titlepage but i tested this on intel xdk not cocoon.io...

    Wait, you are using the official GameCenter plugin (Not Cranberry's) and it works for you? I am also using XDK not Cocoon.

    Im doing exactly that, I authenticate at start of title screen but it doesnt work. The player doesn't get logged in.

    Can I ask about your setup in iTunesConnect? You're testing this using the beta testing right? TestFlight > External Testing? Or are you using 'Internal Testing'?

    Do you have a user account added to User's and Roles > Sandbox Testers. Do you use that account to test the GameCenter functionaility or is that unnecessary?

  • oh no i meant what does it show for you in the installed section of the plugins page for cocoon

    heres what i mean. I get the git url automatically for iap if i keep the config file from exporting from construct 2

    Well if you want to use Cranberry's Cordova iAP then you'll need to link to the associated git url. But if you use the Cocoon iAP plugin, youll want to remove any reference to Cranberry's. Many of the plugins in the screencap Cocoon just ads by default, you need them.

  • ...So I switched to using the Cranberrygame CordovaiAP plugin. I have that working for Android, but I haven't yet succeeded in getting it to work for iOS.

    I'll be working on this exact problem today. I *think* other people have the CordovaiAP working on iOS, but im currently looking into it.

    So I have CordovaiAP working on iOS. Now im having trouble connecting to GameCenter for achievements.

    I think I can say categorically that the official GameCenter plugin doesnt work. It wont authenticate the user.

    Im using it exactly as it says in the manual:

    On start of layout > authenticate user

    Doesn't authenticate, so im switching to Cranberry's CordovaGame... see if that works.

  • If you're using Cocoon you have options. As far as I understand Cranberry's Cordova plugins will work with Cocoon, but they also have their own plugins for all the essential stuff (GooglePlay, iAP, Ads). So you choose which plugins you want to use. I was testing out Cocoon a while back and I had it working well with the following plugins:

    -Cranberry Chartboost plugin for ads

    -Cranberry GoogleAnalytics plugin (has since stopped working, needs to be updated by Cranberry)

    -Cocoon's Google Play plugin to do achievements.

    At that time I wasn't testing iAPs so I can't comment on that.

  • ...The one thing that confuses me is where to get the "Android Application License Key " for the CordovaIAP. One post says its the super long key that says:

    YOUR LICENSE KEY FOR THIS APPLICATION

    Base64-encoded RSA public key to include in your binary. Please remove any spaces. in the Services & APIs.

    Another one says its a 16 digit number. Couldn't get neither to work....

    Its the first one you mention. The super long one. Thats the number Im using in the CordovaIAP and I actually have that working in the Android version of my game.

    If you couldnt get either to work it must be due to how you have the events for iAP set up in your game project.

    Did you see the links I posted to example capx's a few posts back. They are helpful for demonstrating how to set up the events for iAP. Check em out if you havent already and copy how they implement iAP.

  • alright awesome i guess ill purchase the cranberry pack and check out iap as well and see if i can get ios to work too

    This thread had some useful information:

    Official IAP Trigger Events Not Working Dec 2015

    OP said he managed to get the official iAP working by swapping 'on purchase success' conditions for 'has product'.

    I tried what he describes, and tried to copy his event system that he outlines, but with no success.

  • The first few times i built with xdk i got errors, mostly with the androidinappbilling. I actually took out the cordovagame and it went away.

    About this problem I think that error is related to the iAP object, not the CordovaGame plugin which is used for connecting with GooglePlay, Leaderboards and Achievements.

    Which plugins do you have added in XDK currently? And which iAP are you currently trying to get working, the official iAP object or Cordova iAP?

    Another thing to check, do you have an account set up on Google Payment Center? In the Dev Console there's a link at the bottom of the screen under 'Useful Tools'. You have to set up an account in there to be able to receive payments. If you didnt have that account set up, *maybe* that could be causing your error?

  • I was unable to get the official iAP object working. According to posts I read on the forum some of the conditions don't work with the offical iAP, like 'On purchase success'. According to a post I read by Kyatric you can get it working by using the 'has product id' condition, but I wasn't able to get it working with that.

    So I switched to using the Cranberrygame CordovaiAP plugin. I have that working for Android, but I haven't yet succeeded in getting it to work for iOS.

    I'll be working on this exact problem today. I *think* other people have the CordovaiAP working on iOS, but im currently looking into it.

    Two useful example capx files can be found in this tutorial by Kyatric and the 'CordovaInApp' example posted by

    These two files should give you an idea of how to set up the events to get iAP working.

    I'd be very interested to hear advice from anyone who has the CordovaiAP working with iOS.

  • Hi thanks for noting that, I've taken it off GooglePlay while I get an iAP ready to remove ads. In updated version should be available very soon.

  • damjancd just curious, if you want to keep using cocoon.io, have you tried compiling with WebView+ rather than canvas+ ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well Ive done those steps you describe in your guide, Ive been testing my game in Testflight for a while, but im unable to test iAP or GameCenter.

    I read in another thread that I need to make my iPhone 'developer enabled' or something, and there should be an option in the iPhone's GameCenter settings to switch on Sandbox mode, but I dont have that option on my device...

  • Well written and detailed tutorials AndreasR! These will help a lot of people!

    ...Even if you need a tutorial for a specific part, just let me know!

    Any chance you'd consider expanding the iTunes tutorial to demonstrate how to set up testing with Sandbox?

    I'm currently trying to figure out how test iAPs and GameCenter functionality with Sandbox and finding it pretty challenging..

Artpunk's avatar

Artpunk

Member since 10 Apr, 2014

Twitter
Artpunk has 5 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies