Querying Active Widgets
Voltra allows you to detect which widgets the user has currently placed on their Home Screen. This is useful for:
- Determining if you need to update a specific widget
- Showing a list of active widgets in your app settings
- Optimizing background updates by only targeting installed widgets
getActiveWidgets API
The getActiveWidgets function returns a promise that resolves to an array of all active widget configurations for your app.
Warning
There may be a slight delay in the data returned by this API. iOS caches widget configurations, and it might take a few moments for the system to reflect recent additions or removals of widgets on the Home Screen.
WidgetInfo Object
Each object in the returned array contains:
