Thank you for clarifying.
I've filed an enhancement request at FB13238080.
Post
Replies
Boosts
Views
Activity
I tried the same code with a child account and requestAuthorization(for: .child). Now the production build works, which indicates to me that there's something hard-coded that only allows the .child FamilyControlsMember and not the .individual one.
Any plans to expand the capabilities to individuals and not just child accounts? We're building a focus app for individuals and Content Filter is quite critical to its functionality.
Just to clarify, this should work for the .individual authorization too, right, when calling requestAuthorization(for: .individual)?
Same issue.
Aha, so the issue was that I did not include the intent in the application bundle. Once I did that, the app now performs the update in the application (as opposed to the widget extension).
Reference: https://stackoverflow.com/questions/76566373/why-dont-interactive-buttons-in-ios-17-widget-call-appintent-perform-when-the
Perhaps this could be clarified in this bit of documentation: https://developer.apple.com/documentation/widgetkit/adding-interactivity-to-widgets-and-live-activities#Implement-the-perform-function
I'm a little bit confused too as to why the intent handler (perform) is running in the Widget Extension and not the app, as it says here:
"When a person interacts with a button or toggle in your widget, the system runs the perform() function in your app’s process."
Ideally we could call activity.update from all extensions from the same app group (e.g. a network extension), but if it's just the widgetextension itself that's okay too.