updateActivity method
Update an iOS 16.1+ live activity. You can get an activity id by calling createActivity. Data is a map of key/value pairs that will be transmitted to your iOS extension widget. Map is limited to String keys and values for now.
Implementation
Future updateActivity(String activityId, Map<String, dynamic> data,
[AlertConfig? alertConfig]) async {
if (defaultTargetPlatform == TargetPlatform.iOS) {
await _appGroupsFileService.sendFilesToAppGroups(data);
}
return LiveActivitiesPlatform.instance
.updateActivity(activityId, data, alertConfig);
}