Post

Replies

Boosts

Views

Activity

Opt out does not work: Watch app automatically launches and becomes the frontmost app
watchOS auto-starts watchOS Apps when when the user begins playing audio content on the corresponding iOS app. My App is a standalone App, but still auto-started occasionally. According to this documentation, it is possible to opt out of this behaviour: https://developer.apple.com/documentation/watchkit/wkextensiondelegate/2980708-handleremotenowplayingactivity I entered the key PUICAutoLaunchAudioOptOut into the WatchKit extension’s info.plist file. However, it is not possible to enter this key, according to the screenshot in this documentation, into the NSExtension Dictionary. The key PUICAutoLaunchAudioOptOut is not recognised, i.e. converted to the full string "Opt out of Auto...".  When entering the key into the main Information Property list of the WatchKit extension’s info.plist file, it recognised but ignored, i.e. the App is still automatically started.  How can i prevent my watchOS App from being auto-started without requiring the user to opt out of this in the settings for all Apps?
3
0
920
Jan ’23