I just created test app and wanted to lunch it from other app.
In both apps added Url type and schemes. Then from one app called:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"Test://test_page/"]];
This worked but i got a warning:
Application windows are expected to have a root view controller at the end of application launch
What i am missing here ?
Thanks
EDIT: Added test app lunch method:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
MyViewController *mainView = [[MyViewController alloc] init];
UINavigationController *navControl = [[UINavigationController alloc] initWithRootViewController: mainView];
[self.window setRootViewController: navControl];
// Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}
You should register URL schemes in .plsit file. Please, see this link
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With