In App puchases [iOS]

MrD69

  • Posts: 235
I want to ask the community if anyone has ever successfully made and iOS app that has In App Purchases. My very first App which I made over 3 1/2 years ago went through a literal month of hell during the approval process. I got rejected almost 20 times, had over 50 phone calls with Apple staff. Gathered an entire dictionary of callback numbers, and so on all because it didn't matter what I changed I could not get the in app purchases to work. Using the exact same project, however IAP works perfectly on Android. I have now submitted my most recent game. This is the first time since then that I have had IAP. I never did get the old app to work and eventually opted to just nuke the whole IAP thing all together just to get it approved. Now with my most recent app built in Stencyl 3.4 I figured it was a matter of glitch or that the old version of Stencyl wasn't working correctly. Nope :'( . Just got rejected on the same basis that the IAP wont work. Asking Apple support for technical help is useless, because they don't endorse 3rd party products. I have followed to a T the instructions given at
http://www.stencyl.com/help/view/ios-in-app-purchases/
and have no way to test whether or not the IAP will work before submitting since I don't own an iOS device. I'd like to know if anyone has had the same issue, or better if you've had no issue could you provide the exact means of how to make IAP work. This would be really helpful to ask before I go putting myself through another month of Hell on Earth :'(
Games: Arrow Mania, Breakout/Outbreak, Water Drop

colburt187

  • *
  • Posts: 2416
Yeah there a lots of stencyl games with iap, what specifically are you getting rejected for? I haven't used consumable iaps but below is the logic I use for the standard remove adverts iap.

I request the info in the first scene. Purchase the iap with a button press. use the purchased block as a bool to check if it has been bought before showing adverts. I also have a button that restores purchases.

MrD69

  • Posts: 235
Well basically I am being rejected, because the request info block does not do its job properly. When I go to buy a product it does not work correctly. I am calling the request info block on the very first scene. Then I am clicking on my buy button and it just does nothing.
Games: Arrow Mania, Breakout/Outbreak, Water Drop

colburt187

  • *
  • Posts: 2416
What build of stencyl are you on? there must be more to it, as you can see I'm using the request info block and I'm on app number 9 that all include iAP. Is it a consumable iap?

MrD69

  • Posts: 235
its a non consumable one time purchase for removing ads from the game.

I am using Stencyl Build 9300.
:'(
I have included all the logic below. there is 2 intro scenes and then the main menu. As you can see I request the IAP info 3 times each only being called if the previews request fails.  I even have logic to delete the button if all requests fail and goods=false. I have been rejected 3 times now by the pricks at Apple support and am already beyond livid. the final screen shot shows clearly the button is there, and so the request succeeded, but when clicked on the button, all they get is an error message. Somebody please help cause I've all but given up at this point  :'( :'( :'(
Games: Arrow Mania, Breakout/Outbreak, Water Drop

MrD69

  • Posts: 235
I have some additional information that might help. I wrote an output message for the PRODUCT INFO REQUEST SUCEEDS. The block is called, but the returning ID is blank, and not what it should be which is com.stencyl.ads
Games: Arrow Mania, Breakout/Outbreak, Water Drop

colburt187

  • *
  • Posts: 2416
Do you have all your contacts and bank info filled in on iTunes connect? You have singed all the required forms?

MrD69

  • Posts: 235
Yes I've completed all that and it still doesn't work.
Games: Arrow Mania, Breakout/Outbreak, Water Drop

colburt187

  • *
  • Posts: 2416
I don't think the issue is with stencyl, i think it must be somewhere in the iTunes set up. Your provisional profiles have iap activated on them? the App ID on the developer portal as iap enabled?

thechaosengine

  • *
  • Posts: 329
Maybe try using a different naming convention for your IAP ID's? Not sure if Apple's idea of alphanumeric  includes punctuation or not.

colburt187

  • *
  • Posts: 2416
Maybe try using a different naming convention for your IAP ID's? Not sure if Apple's idea of alphanumeric  includes punctuation or not.

yeah that is a good point, it does specifically say 'alphanumeric' Does that maybe mean there has to be a number in there?

thechaosengine

  • *
  • Posts: 329
Nah I never put numbers in there, but I don't put 'com.game.name' either. I just call it 'GameNoAds' or whatever

FMStudioGameDev

  • Posts: 233
Nah I never put numbers in there, but I don't put 'com.game.name' either. I just call it 'GameNoAds' or whatever
I am pretty sure that name is not the problem, I always call my inApp with reverse domain convention (com.mydomain.gamename_inappname), never had any issue for this.

thechaosengine

  • *
  • Posts: 329
well, that's another possibility eliminated. I'm out of ideas on this one  :/ 

MrD69

  • Posts: 235
I still can't get it to work. Phoned apple technical support but they are useless. I am using the request info succeeds block and printing the product ID to terminal. It's blank. so the If (product_ID == com.bolletji.ads) block is not called and goods remains false. The button for removing ads is then gone as a result. If I don't kill the button, and let it call the buy (com.bolletji.ads) block then nothing happens, and the purchase failed block is then called.
Games: Arrow Mania, Breakout/Outbreak, Water Drop