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

[iPad] Create activity make the app crash and can't open again #40

Closed phuchuynhStrong closed 1 year ago

phuchuynhStrong commented 1 year ago

I know "Live Activities are only available on iPhone" but I didn't expect the code to crash my app instead of throwing a flutter exception. After the first crash, the iPads keep crashing when re-open which force my users to uninstall the app. You can reproduce the bug by running the example project on an iPad simulator

Error details

live_activities/SwiftLiveActivitiesPlugin.swift:196: Fatal error: Unexpectedly found nil while unwrapping an Optional value

Possible fix

I have opened a PR for this #39