IAP First-timer... What should the IAP message within the Ad hoc say?

kaanukikaanuki Member Posts: 154
Hello All.

I am new to IAPs. I have seen all of the related videos from GS Helper (which helped a lot).

I am receiving an error message within my Ad hoc when purchasing an IAP: "PRODUCT IDENTIFIER WAS NOT RECOGNIZED: itemabc"

Is this normal? What message should I see within the adhoc? The Tutorials I have seen have not shown a real / ad hoc IAP purchase being made.


I have setup an AD HOC Provisioning Profile, and Ad hoc App within iTunes Connect that these product identifiers are setup within.

Is something missing? What message should I see when testing my IAPs?

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    You need to set up a test user account. Read the iTunes developer guide for details on how to set up and test with it.
  • kaanukikaanuki Member Posts: 154
    edited May 2013
    Yes - I have one setup which stupidly requires a credit card within my device. This is why I wanted to know what I should be seeing before continuing with this setup.

    Will I see a different message?

    @uptimistik - Yes everything is functioning properly in the viewer.

    Thanks a lot.
  • mounted88mounted88 Member Posts: 1,113
    Yes - I have one setup which stupidly requires a credit card within my device. This is why I wanted to know what I should be seeing before continuing with this setup.

    Will I see a different message?

    @uptimistik - Yes everything is functioning properly in the viewer.

    Thanks a lot.
    I don't think you have to enter credit info for a test user. You set up a test user in iTunes connect right?
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited May 2013
    No it doesn't your not doing it right. Read the guide. You need to make an account in the test area of iTunes connect. You DON'T enter that info on your device preferences for App Store this voids the test account. The only time you enter it is when you click on your own IAP in adhoc and it ask you to sign in this is sandbox mode. You need to sign out on your device of any iTunes account before you test. Read the guide it's very clear on how to do this.
  • kaanukikaanuki Member Posts: 154
    edited May 2013
    No it doesn't your not doing it right. Read the guide.
    Within my iPhone/ipod, when changing to a new user in the itunes settings, i have to enter the new Test User ID, at which point its taking me through the whole setup process. However the iPhone/ipods are new, and I never entered any credit card info before, So it may not be 'fully' setup and treating this Test account like the main user. I'll go ahead and re-enter the info for my main account first(with credit card), then setup the Test user.
  • mounted88mounted88 Member Posts: 1,113
    Only thing you have to do is sign out of iTunes completely, open your game and try to test your IAP. At that point it will ask you to log in, then log in with your test account.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited May 2013
    You're still doing it wrong. As @mounted88 said you didn't read my post fully it says very clearly in the iTunes connect guide at no point do you enter the account into iTunes period even if you never entered any credit info or charges. The very fact you signed in with it through iTunes on your device voids it period. If you took the time to read the iTunes guide carefully you'd have know that. I had no problem sand boxing my IAP because I read the guide and did exactly as it says to do. Make an account in iTunes test area. Must be an account never ever entered into iTunes one device or computer period. If you enter it into the device setting and press sign in, right then it becomes void as a test account. Even if you don't get past or enter credit info.
  • mounted88mounted88 Member Posts: 1,113
    You're still doing it wrong. As @mounted88 said you didn't read my post fully it says very clearly in the iTunes connect guide at no point do you enter the account into iTunes period even if you never entered any credit info or charges. The very fact you signed in with it through iTunes on your device voids it period. If you took the time to read the iTunes guide carefully you'd have know that. I had no problem sand boxing my IAP because I read the guide and did exactly as it says to do. Make an account in iTunes test area. Must be an account never ever entered into iTunes one device or computer period. If you enter it into the device setting and press sign in, right then it becomes void as a test account. Even if you don't get past or enter credit info.
    Well said ;)
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Ugh the most difficult thing sometimes is to get people to simply read the material and not be in a rush. You can never assume anything and his issue was he assumed because he never purchased anything or entered his credit info the account was still a valid test account and the guide has this in a highlighted pull quote specifically warning you when an account is invalidated.
  • mounted88mounted88 Member Posts: 1,113
    @fryingbaconstudios oh I agree, since I've been active in the forums, I see this a lot. About 50% of questions, can be answered just by reading the guide.

    Maybe apple developer guide is only in some languages, maybe they don't support everyone ;)
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Shame on Apple if the don't. It should be in all the major languages.
  • kaanukikaanuki Member Posts: 154
    edited May 2013
    Ease up a bit.

    This is my first Mac and first time developing in the Mac environment. Having to convert a project after 6 months of development, its hard to read everything and remember it all. Plus its not 100% clear, because its completely different than the Windows environment.

    If it was that cut and dry, this forum would have one post: "Go Read the material Its all there".

    But thanks for clarifying.
  • kaanukikaanuki Member Posts: 154
    edited May 2013
    Also - Its not clear exactly what is XCODE related only versus GS related. So, you try to skip things that are not relevant.

    The Sandbox Environment? Store Kit?

    GS is my introduction to Mac development, not Xcode. Plus, I learned GS via the videos, mostly. Maybe if the video tutorials mentioned these, it would help.


    I was logged out of my iTunes account when testing the app. That is when I received the error. So I'm not sure exactly what Im doing wrong


    Here is what is confusing:
    ~~~~~~~~~~
    In-App Purchase Programming Guide:

    Launch your application.
    Once you have signed out of your account, exit Settings and launch your application. As you make purchases from your application’s store, Store Kit prompts you to authenticate the transaction. Log in using your test account to approve the payment. No financial transaction takes place, but transactions complete as if a payment was made.
    ~~~~~~~~~

    Where do I find 'Store Kit' ??Its not a GS thing. Is it supposed to pop up automatically?
  • mounted88mounted88 Member Posts: 1,113
    Sorry for being harsh with you, your just the straw that broke the camels back.

    If you set everything up in iTunes connect and in gs to match(IAP identifier) and create a test account and followed what we said. Then I'm not sure what else to do at this point. If I was you I would double check that everything correct.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited May 2013
    All you have to do is make a test account. Make sure you sign out of any account on your device. Have an adhoc of your app on your device. Start your app go into your scene you have your IAP set up and press the button you have set up to make the purchase. When you do that you will be prompted there to sign in to the sandbox account with the test account you created. That's it.

    I'll make a video tomorrow.
  • kaanukikaanuki Member Posts: 154
    Thanks a lot guys.

    A video would be superb.
Sign In or Register to comment.