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.
UIApplication prevent app moving to foreground if other app calls openURL: with valid URL
-
21-04-2022 - |
Pergunta
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
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow