Bug: iPad iOS 18.2 cannot initialize in-app purchases(iPad iOS 18.2无法初始化内购)

Unity Editor 2022.03.27f1c1
Unity Purchasing 4.12.0
iPad iOS 18.2

默认 15:27:42.126950+0800 CharmingOnetConnectGirls UnityIAP: Requesting 14 products
默认 15:27:42.127599+0800 CharmingOnetConnectGirls UnityIAP: Requesting product data…

一直停留在这里,OnInitialized和OnInitializeFailed都没有触发,但是在iPhone iOS 18.2和iPad 15.7都可以正常初始化,App Store提审被打回来了,iPad 18.2设备没初始化。升级unity purchasing 到4.12.2版本还是没有解决

It has been stuck here. Neither OnInitialized nor OnInitializeFailed is triggered, but it can be initialized normally on iPhone iOS 18.2 and iPad 15.7. The App Store review was rejected and the iPad 18.2 device did not initialize. Upgrading Unity Purchasing to version 4.12.2 still did not solve the problem

Thank you for the report!

Apple made some changes which causes issues on iOS and iPadOS 18.2.
We are currently working on fixing this and we will release an IAP 4.12.3 to fix this as soon as we can.

Update: This might be fixed in iOS / iPadOS 18.2.1, would you be able to update to that version and validate if it works? If it works, does resubmitting your application work?
If this doesn’t work, would you be able to provide your device logs where IAP fails to initialize and with an attempt to buy 1 product?

I have had an app on the AppStore since 2021 with IAPs that are no longer working as of this past week. The IAP system allows players to make a purchase but none of the players’ purchases are recognized within the game. I have not made any updates or changes since 2022 so this is very concerning. What exactly did Apple do that broke Unity’s IAP system because I will need some more details if I am now expected to update my app to fix this. Worth noting, I tested on my iOS device running 16.5 and it’s busted so I don’t think this is just an issue with 18.2…

@icooce
We have gotten reports that Apple has fixed this on iOS 18.3, could you confirm if that solves your issues?

@obsidian1269
The SHA-1 certificate used for signing Apple Store receipts expired:

If you want to keep using local receipt validation, you will need to update to IAP 4.9.4 or above which supports SHA-256

Thank you for the info on this! That looks to be the issue. My app is running 2019.4.32f1 as there are multiple dependencies that prevent me from upgrading. It appears the highest available IAP package is 4.1.5 so I’m not sure if I have any way to fix this. Do I have the ability to do another form of receipt validation or can I somehow inject 4.9.4 into Unity 2019.4.32f1?

You could potentially fork the repository locally and make the necessary changes to /Runtime/Security.

We can’t provide specific support for injecting packages in this way but if you can’t update your Unity version this is probably the only option.