iAP testing on device

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited August 2012 in Working with GS (Mac)
Hey guys,

I already checked the cookbook and just want to be sure. So in order to test iAP I only have to set up
a new test user, I haven't set up one yet, and that's it? How do I use this test user when creating an AdHoc?

thx ALex

Comments

  • ChobbifaceChobbiface PRO Posts: 491
    Well other than actually setting up the IAP behaviours, yes you'll need a test user account. When you have the adhoc on your device and attempt to make the in-app purchase, it'll prompt you to log in, where you'll use the test account.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    edited August 2012
    Hey,
    @Chobbiface
    thx for the answer. Just a quick question, I implemented the behavior and it works with the viewer, so it doesn't work like in real but it aks to succeed etc. But when I tried it with an AdHoc it doesn't asked me to log in? I just tried it..I didn't create the test account yet, I just wanted to see if it asks me to log in...What I got was the loading wheel which disappeared after some time and nothing happened then...

    Is the productID important when only testing?

    What I did:

    when touch is pressed
    ProductID: tabelCellValue(iAP,1,1)
    change game.coins to game.coins + tableCellValue(iAP,2,1)

    Save attribute coins - key: coinsTotal


    Alex
  • ChobbifaceChobbiface PRO Posts: 491
    edited August 2012
    The productID you use in the GS behaviour has to match the productID you set up in iTunes Connect. It's not just for testing.

    A couple of things I can think of:

    1. Did you publish the adhoc with the provisioning profile tied to the same bundleID for the app on iTunes Connect?

    2. I think it's been mentioned before, not to use the expression editor 'e' button, but to type it in directly for the product identifier.

    3. Avoid bundleID with an asterisk, apparently has caused problems (not sure on this one)

    Last resort you've prob. tried already. Make sure you're logged out of iTunes, close app and restart

  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Hey,

    what is "asterisk"? I connected the ID to a table list, like they did in cookbook.
    I didn't create an app on iTunesConnect yet because the game is not done yet.
    Is this the reason for it?

    thx @Chobbiface
  • ChobbifaceChobbiface PRO Posts: 491
    Hey @AIGames

    That is the reason then - because you haven't set the app up in iTunes connect. You need to set up the app, plus the in-app purchase for the app in iTunes connect. Otherwise when you test the app adhoc, it won't be recognised as an app with IAP - since it doesn't exist in iTunes Connect. Also, your product ID in the GS creator - is pointing to nothing, again because the app and IAP doesn't exist in iTunes connect.

    Asterisk is this symbol * by the way :)
Sign In or Register to comment.