how can I trigger force updates without an external SDK

Asked on 01/20/2025

1 search

To trigger force updates without an external SDK, you can utilize the system's built-in mechanisms for reloading controls. According to the session "Extend your app’s controls across the system," there are three kinds of events that cause the system to reload your control:

  1. When your control action is performed.
  2. When your app requests a reload of the control on demand.
  3. When a push notification invalidates your control.

For on-demand updates, your app can request a reload of the control. This is similar to how widgets and live activities are refreshed. You can enable WidgetKit developer mode in developer settings to remove system policies from your control, which can be useful during development to frequently refresh the control's state.

For more detailed information, you can refer to the session Extend your app’s controls across the system (07:10).