enterLiveActivity method
Indicate this device has exited a live activity, identified within OneSignal by the activityId
. The
token
is the ActivityKit's update token that will be used to update the live activity.
Only applies to iOS.
Implementation
Future<void> enterLiveActivity(String activityId, String token) async {
if (Platform.isIOS) {
return await _channel.invokeMethod("OneSignal#enterLiveActivity",
{'activityId': activityId, 'token': token});
}
}