Using a URL scheme to get a background runtime in another application

Can I use the URL Scheme mechanism in app 1 to get the runtime background in app 2?

I want to avoid lunch in Appendix 2?

In Appendix 1, I:

  NSURL *myUrl = [NSURL URLWithString:@"myScheme://"]; if ([[UIApplication sharedApplication] canOpenURL:myUrl]) { [[UIApplication sharedApplication] openURL:myUrl]; } 

In Appendix 2, this method:

 - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation; 

Is it possible to avoid using application 2 for lunch and run this method (or any other related method) in the background?

Thanks in advance!

+6
source share
1 answer

No, you can’t.

Launching applications quietly in the background does not correlate with the safe, transparent, and energy-efficient iOS concept.

0
source

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


All Articles