Hi there,
we noticed that Application.OpenURL doesn’t work on iOS 18+. It seems a similar issue was already fixed in LTS 2022. Is there an ETA for when this will be fixed in 2023? We are currently using version 2023.2.20, where this issue still occurs.
Thanks a lot for your response!
Console log from xcode 16.1 (16B40), macOS 15.0.1 (24A348):
BUG IN CLIENT OF UIKIT: The caller of UIApplication.openURL(: ) needs to migrate to the non-deprecated UIApplication.open(:options:completionHandler:). Force returning false (NO).
We cannot simply update to a completely new version of Unity (especially in this case). Our project is large, and regression tests are complex and time-consuming. Unity 6 is still in its early stages of production.
Please help me understand the situation. Regardless of the versioning name, all the improvements and updates mentioned here (Unity 6 is here: See what's new) are specific to Unity 6, correct? So, moving from Unity 2023.2.20 to Unity 6 would likely be a significant leap, introducing a lot of new functionality that could pose potential risks. If we are currently on version 2023.2.20, is migrating to Unity 6 with all those changes the only option to get a simple fix for openURL?
What was originally supposed to be Unity 2023.3 (LTS) has been delayed and renamed to Unity 6. The differences are supposed to be minor between the two, the same as you had when 2022.2 became 2022.3 LTS.
Hmm, so it seems the only option is to try it. Honestly, though, considering the big announcements about all these “minor” differences, it’s a bit confusing.
But thanks a lot for the quick response!
Sure, that’s good advice in fact. Everything is in the repositories However, we resolved it with a custom iOS plugin using the latest UIKit openURL for now. Unity 6 seems promising, but at the moment, it’s not the most efficient solution for us to adopt overnight just for this small fix. We were just curious if there are any plans to extend the 2023.2.x version with the appropriate fix. But anyway - Thank you guys, you’re creating an amazing product, no doubt about it!
To fix this write custom open url plugin for IOS. Create OpenURLPlugin.m And put it in Assets/Plguins/iOS (should auto mark to only be usable on iOS platform but double check).
Paste this code:
Built from ‘6000.1/staging’ branch, Version ‘6000.1.11f1 (9b156bbbd4df)’, Build type ‘Release’, Scripting Backend ‘il2cpp’
iOS version: 18.5
BUG IN CLIENT OF UIKIT: The caller of UIApplication.openURL(_:) needs to migrate to the non-deprecated UIApplication.open(_:options:completionHandler:). Force returning false (NO).