istornz/flutter_live_activities

sendImageToAppGroups crashes when sending same image

Opened this issue · 1 comments

I want to create 3 activities with the same icon (icon.png). When the plugin creates 3rd of them it removes a file used for the 2nd - 76th number of lines in app_groups_image_service.dart. Deleting this line helps, however, it's a workaround.

The error still occurs. Removing this line helps, however, there should be a way to handle the image with the same name. Script shouldn't remove it if it's used by another live activity.

file.deleteSync(); in app_groups_image_service.dart:76