Voltra provides several configuration options to control Live Activity behavior, lifecycle, and appearance. These options can be used when starting, updating, or stopping Live Activities.
For Expo plugin configuration options (like groupIdentifier, enablePushNotifications, deploymentTarget, and widgets), see the Plugin Configuration documentation.
Voltra supports configuring how Live Activities behave after they end. You can control the dismissal timing using the dismissalPolicy option:
'immediate' (default): The Live Activity is dismissed immediately when it ends{ after: number }: The Live Activity remains visible for the specified number of seconds after ending, then automatically dismissesImmediate dismissal (default behavior):
Delayed dismissal (keep visible for 30 seconds after ending):
Update dismissal policy for active Live Activities:
Set dismissal policy when ending a Live Activity:
The dismissal policy applies to both programmatic ending (stopLiveActivity) and natural ending (when timers reach their end time). This gives you fine-grained control over the user experience when Live Activities conclude.
Voltra provides additional configuration options to control Live Activity behavior and appearance.
The staleDate option allows you to specify when a Live Activity should be considered stale and automatically dismissed by the system.
Note: If you provide a staleDate in the past, it will be ignored and the Live Activity will use default behavior.
The relevanceScore option helps iOS prioritize which Live Activities to display when space is limited. Higher scores (closer to 1.0) indicate more important activities.
Valid range: 0.0 to 1.0 (default: 0.0)
These options can be used together with dismissal policy and other configuration options: