diff --git a/iphone/TitaniumKit/TitaniumKit/Sources/API/TiApp.m b/iphone/TitaniumKit/TitaniumKit/Sources/API/TiApp.m index 0bb4774ace9..a9eb0d1cc94 100644 --- a/iphone/TitaniumKit/TitaniumKit/Sources/API/TiApp.m +++ b/iphone/TitaniumKit/TitaniumKit/Sources/API/TiApp.m @@ -448,7 +448,11 @@ - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDiction [launchOptions setObject:[options objectForKey:UIApplicationOpenURLOptionsSourceApplicationKey] ?: [NSNull null] forKey:@"source"]; - [[NSNotificationCenter defaultCenter] postNotificationName:kTiApplicationLaunchedFromURL object:self userInfo:launchOptions]; + if (appBooted) { + [[NSNotificationCenter defaultCenter] postNotificationName:kTiApplicationLaunchedFromURL object:self userInfo:launchOptions]; + } else { + [[self queuedBootEvents] setObject:launchOptions forKey:kTiApplicationLaunchedFromURL]; + } return YES; } @@ -465,7 +469,11 @@ - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceAppl [launchOptions setObject:sourceApplication ?: [NSNull null] forKey:@"source"]; - [[NSNotificationCenter defaultCenter] postNotificationName:kTiApplicationLaunchedFromURL object:self userInfo:launchOptions]; + if (appBooted) { + [[NSNotificationCenter defaultCenter] postNotificationName:kTiApplicationLaunchedFromURL object:self userInfo:launchOptions]; + } else { + [[self queuedBootEvents] setObject:launchOptions forKey:kTiApplicationLaunchedFromURL]; + } return YES; }