Can I use wcsession to bring the parent iOS app to the forefront

I have successfully made data exchange between the watch and the phone using WCSession.
However, the problem I find is that the parent application will not automatically go to the front when it receives the message.
Is there any way to make this possible? Because I saw some kind of watch app wake up parent apps.
Many thanks.

+4
source share
2 answers

Applications cannot bring themselves to the forefront. It's impossible.

+1
source

Using the WCSession sendMessage API, a chat extension can wake an iOS application in the background when session.reachable is true. You cannot wake up the iOS app in the foreground from the watch extension, but you can get the iOS app to start tracking location, play background sound, etc.

+2
source

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


All Articles