istornz / flutter_live_activities

A Flutter plugin to use iOS 16.1+ Live Activities ⛹️ & iPhone Dynamic Island 🏝️ features
https://dimitridessus.fr/
MIT License
175 stars 54 forks source link

Persist Live Activity as Banner if no dynamic island #44

Open ashlynbaum opened 1 year ago

ashlynbaum commented 1 year ago

Hi there,

Thanks for putting this plug in together!

Reading the ios docs I see:

Devices that don’t support the Dynamic Island: On devices that don’t support the Dynamic Island, the system uses the Lock Screen presentation of your Live Activity as a banner that briefly overlays the Home Screen or another app. This happens only when an update to your Live Activity contains an alert configuration.

I don't see an option to add an alert configuration to the update call. Am I missing how to do this? I'd like to be able to add vibration alerts and have the banner on the unlocked screen.

charlesRmajor commented 1 year ago

@istornz — do you think this is something that you'll get to soon? Just curious. Thanks so much for this package, it's great!

ashlynbaum commented 1 year ago

@charlesRmajor I forked the repo and added the change, but haven't fully implemented providing a sound file, the custom title, and custom body from flutter. I just have a default title and body as part of the alert.

https://github.com/ashlynbaum/flutter_live_activities

istornz commented 1 year ago

Thanks @ashlynbaum, I will try to implement this asap (or if you want to submit a PR, you are welcome 👍 )

charlesRmajor commented 9 months ago

Submitted a PR for this!