Question

Can we prevent application moving to foreground if other apps call openURL: with valid URL. I need only save data from URL; caller application should stay in foreground and receiver app should stay in background.

For example: first app calls to [[UIApplication sharedApplication] openURL:@"validURL://"] and second app handles that call in - (BOOL) application:(UIApplication *)app handleOpenURL:(NSURL *)url, process URL, but does not move to foreground

Was it helpful?

Solution

No, but you might want to look at the x-callback-url movement to see if that might help. Basically, it doesn't prevent you from coming to the background, but it allows you to receive another URL which you can then use to bring the originating app back to the foreground.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top