Hi
I have got IAP working in the Editor and on Android. When I upload the app to Testflight it doesn’t work. I have set up the products but am wondering if there is another step i need to take in order to test it prior to promoting to live.
What exactly does it mean that it doesn’t work? What errors are issued? What’s in the logs?
A common problem on iOS is that you need to confirm the paid agreement in the developer dashboard.
If you have a device, run your app from Xcode directly on that device. This way you can see all the Unity logs in the Xcode window. Perhaps there are some problems at the stage of initialization of purchases or somewhere else.
If you can’t run your app directly from Xcode, you can connect your device to a computer with Xcode, then run Xcode, then open: Window->Devices and Simulators. There, select your device and click Open Console. And filter in the field by app name. But this is less convenient than debugging directly through running the application from Xcode.
I am a one man band with a single iphone, so setting up/juggling multiple accounts for this whole sandbox thing is very confusing! Apart from anything else there is no address to go with the test accounts and using my own, unsurprisingly doesn’t work. I appreciate this isn’t a Mac support forum and have raised a ticket with them.
However could you confirm whether I should be able to see the correct layout in TestFlight, without having set up anything in sandbox? I have all set up all the agreements etc for the developer account.
thanks
You need to solve the problem of connecting the device, because without debugging, such problems are not solved.
The sandbox account is not linked to your main account in any way. When creating it inside AppStoreConnect(Sandbox Testing - Apple Pay - Apple Developer), you can specify, in my opinion, any email at all. And you do not need to change the main account inside your iPhone (on the contrary, you can not do this! if you did this, then create a new sandbox account). At the moment when you make a purchase, the operating system will ask you to specify an account, and it is at this moment that you need to specify your sandbox account. The only thing I don’t know is how much it depends or not on whether developer mode is enabled on your iPhone.
If you have just confirmed the agreements, then it may take some time for Apple to accept them. The status should become - Active (green).
In theory, without a sandbox account, you should still see the correct in-game purchases.
thanks - i have now got device working via usb and tried following the instructions to Install StoreKit but that didn’t work - i am in contact with Apple Support but they aren’t being much help
I checked the products on my Apple developer and it now shows there being a problem. Again I have asked Apple for guidance but they ignored the question. Can you see what is wrong?
btw - since i first posted this I can now use the purchase buttons but I don’t get the correct text appearing (I have uploaded the screens from android and ios for comparison
thanks
What is the developer action needed in your Dashboard screenshots? Those must be cleared first. Usually you can hover or click on those exclamation points to get more info. IAP won’t work until those are cleared.
that is my problem! I can’t find the issue… outside scope of this post but was hoping the screenshots might reveal something obvious that I have missed.
Will wait to see if Apple support can shed any light
OK this is the problem: When App Review rejects an app, the state of the In-App Purchase identifiers follows the state of the app
i.e there is potentially nothing wrong with the setup - hard to be certain at this stage
Nothing wrong with the set up of the IAP Products, just because the APP was rejected by review
I think that is it
I encount the same problem and i am try figure it out why
thanks you @lz7cjc
You guys @JeffDUnity3D should really try some thing wrong,Like this : APP was rejected
I think i have worked out the problem (at least my one!) and it is crazy
Until the app gets approved for The App Store, you don’t see the correct text on the buttons in your app, in Testflight. So the only way to verify that they are appearing as desired is to push the app to live
Of course when you do this, it is done blind and may well be the reason the app fails
So you are basically in a catch 22 until the app is approved which in turn triggers approval of the product catalogues which in turn leads to the buttons and associated text rendering correctly