createOrUpdateActivity method
Implementation
Future createOrUpdateActivity(
String activityId,
Map<String, dynamic> data, {
bool removeWhenAppIsKilled = false,
Duration? staleIn,
}) async {
if (defaultTargetPlatform == TargetPlatform.iOS) {
await _appGroupsFileService.sendFilesToAppGroups(data);
}
return LiveActivitiesPlatform.instance.createOrUpdateActivity(
activityId, data,
removeWhenAppIsKilled: removeWhenAppIsKilled, staleIn: staleIn);
}