Hi,
How do I authenticate a user in a widget, indirectly?
Per Human Guidelines' :
Thanks,
How do I authenticate a user in a widget, indirectly?
Per Human Guidelines' :
Once the user has logged in using the app, how do I pass the logged-in/authenticated info the widget?Let people know when authentication adds value
Thanks,
hoan
Is this authenticated status for system capabilities (like photo access, etc.) or your app's login statuses?
If it's for system capabilities, you don't need to pass anything to the widget. Just checking the auth status in the widget is enough.
If it's your app's specific status, then you should use App Groups to share data between your host app and extensions. For an example you can check out the Soup Chef demo app: https://developer.apple.com/documentation/sirikit/soup_chef_accelerating_app_interactions_with_shortcuts
If it's for system capabilities, you don't need to pass anything to the widget. Just checking the auth status in the widget is enough.
If it's your app's specific status, then you should use App Groups to share data between your host app and extensions. For an example you can check out the Soup Chef demo app: https://developer.apple.com/documentation/sirikit/soup_chef_accelerating_app_interactions_with_shortcuts