-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working on iOS13 #18
Comments
I get the same issue. It will open the app then crash. Here is the error log I get from the crash:
|
@NDrexlAxonom, I did changes as described in this video. It fixed things for us. https://developer.apple.com/videos/play/wwdc2019/717/ |
Did you have to change the UnityDeeplinks.mm file to get it to work or follow the AASA steps to get it to work? I am trying to keep it using a custom url scheme as that matches our android app, but if we need to switch we can. |
the AASA steps. We don't use custom url as it is suggested in the video they are not secure enough. |
Unfortunately Application.deepLinkActivated is not available in 2018.4, which is the Unity version I am using. Does anyone know how to fix the root issue, or of a way to use the workaround presented here in 2018.4? |
If you're experiencing an iOS crash, you should consider UnityAppController based on your version of Unity. Take a good look at it and implement it by inheriting it. I modified it as follows. |
Hey pchuri, I appreciate the quick reply! I tried plugging in your UnityDeeplinks.mm file, re-building and clicking on a universal link in Safari, but I still get a crash :(
|
I tested it with Unity 2019.2 and xcode 10.2 and it worked fine. You will need to modify the code for your version. |
Apologies for my noobiness, but can you clarify what part I would need to modify for my version? I'm using Unity 2018.411f1 and XCode 11.1. I read through UnityDeeplinks.mm and nothing jumps out to me at being version-specific, but I'm not an Objective-C programmer. Thank you so much for the help, I've been stuck on this for days now :( |
UnityDeeplinks is a subclass of UnityAppController. UnityAppController is implemented differently depending on the version of Unity. So you should check it directly in Xcode. |
I have figured out the solution to this. The root issue has to do with the deprecated function application:openURL:sourceApplication:annotation being removed, either by Unity or by Apple. This was the old function for iOS < 9.0. The original UnityDeeplinks.mm routed the calls from the new function through the old deprecated one. If I remove the calls to the old function everything works! Thank you very much for all the help! |
I have installed iOS13 public beta and it seems that deep link is not working on it. Works fine on iOS 12.4
The text was updated successfully, but these errors were encountered: