Skip to content
This repository was archived by the owner on Feb 10, 2023. It is now read-only.

Commit 504f701

Browse files
committed
fix(iOS-cold-start): Let app handle URL when launched fresh
1 parent c4e479a commit 504f701

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

urlhandler.ios.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ export class UrlHandlerAppDelegate extends UIResponder implements UIApplicationD
66

77
public static ObjCProtocols = [UIApplicationDelegate];
88

9+
applicationDidFinishLaunchingWithOptions(application: UIApplication, launchOptions: NSDictionary<any, any>) {
10+
let urlOptions: string = launchOptions.valueForKey('UIApplicationLaunchOptionsURLKey');
11+
if (urlOptions) {
12+
getCallback()(extractAppURL(urlOptions));
13+
}
14+
return true;
15+
}
16+
17+
918
applicationOpenURLOptions(application: UIApplication, url: NSURL, options: any): boolean {
1019
getCallback()(extractAppURL(url.absoluteString));
1120
return true;

0 commit comments

Comments
 (0)