Open another application using URL schemes

I just created a test application and wanted to have lunch in another application.

In both applications, Url type and schemas have been added. Then from one application is called:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"Test://test_page/"]]; 

This worked, but I got a warning:

In application windows, it is expected that the root controller will be installed at the end of the application launch.

What am I missing here?

thanks

EDIT: added lunch method when testing:

 - (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; } 
+4
source share
1 answer

You must register URL schemes in a .plsit file. See Link

+1
source

Source: https://habr.com/ru/post/1446611/


All Articles