Hello! I’m running into an issue with Universal Links. It works fine when the app is suspended.
When the app is cold booted from a universal link, it hangs indefinitely on a black screen.
I’ve logged the errors in Unity and it seems to come from this section of code during launch.
I’ve attached pictures of the logged threads as well.
I do have Firebase in the app for other purposes as you can see in the logged thread.
Is this a Unity bug, or a collision between Firebase and Unity? Any way to fix this?
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity
#if defined(__IPHONE_12_0) || defined(__TVOS_12_0)
restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring> > * _Nullable restorableObjects))restorationHandler
#else
restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler
#endif
{
NSURL* url = userActivity.webpageURL;
NSLog( @"url is %@", url);
if (url)
UnitySetAbsoluteURL(url.absoluteString.UTF8String);
return YES;
}