My app's Widgets on iPhone rely on access to the Health Store to update. This makes them appearing in the new StandBy mode not a good experience as they never update.
Is there a way to opt out of this mode but keep the options for my users to put Widgets on their home screen?
Thanks
The thing you want to do is possible using disfavoredLocations(for:)
.
https://developer.apple.com/documentation/swiftui/widgetconfiguration/disfavoredlocations(_:for:)