- ποΈ Move to Swift Package Manager.
- ποΈ Regenerate example app.
- β¬οΈ Upgrade dependencies.
- β¨ Added a new method
createOrUpdateActivity()
, you can use it to create or update by passing an activity ID (thanks to @Clon1998 π). - β¬οΈ Upgrade dependencies.
- β¨ You can now send generic files instead of just pictures.
To send a file you can do the following on the Dart code:
LiveActivityFileFromAsset('assets/files/rules.txt')
And in your Swift code:
let ruleFile = sharedDefault.string(forKey: context.attributes.prefixedKey("yourFileKey"))!
let rule = (try? String(contentsOfFile: ruleFile, encoding: .utf8)) ?? ""
Check the example for a full demo.
BREAKING CHANGES
You must replace your images to:
LiveActivityFileFromAsset.image()
LiveActivityFileFromMemory.image()
LiveActivityFileFromUrl.image()
In order to use resizeFactor
you must do the following now:
LiveActivityFileFromAsset.image(
'assets/images/chelsea.png',
imageOptions: LiveActivityImageFileOptions(
resizeFactor: 0.2
)
),
- π Example works again with scheme.
- π Fix channel message sent from native to Flutter on a non-platform thread (thanks to @aswanath π)
- ποΈ Clean some code.
- β¨ Use new custom iOS App Group Directory dependency (this will fix namespace for Android gradle builds).
- β¨ Removed deprecated flutter_native_image dependency and replaced by image (thanks to @SnapDrive π)
- β¬οΈ Upgrade dependencies.
- π Fix
areActivitiesEnabled()
on unsupported devices.
- π± Convert images to webp.
- β¬οΈ Upgrade dependencies.
- π Force returning false for
areActivitiesEnabled()
when no iOS devices.
- β¨ Simplified fetching of ActivityState of all created live activities (thanks to @Clon1998 π).
- π Fixes background thread invocation of event streams (thanks to @ggirotto π).
- π Replaced getImageProperties with dart buffer and descriptor (thanks to @anumb π).
- π Fix tests.
- β¬οΈ Upgrade dependencies.
- β¨ Add update with alert config (thanks @charlesRmajor π).
- β¨ Add an option to use preloaded images (thanks @Niklas-Sommer π).
- β¨ Add Android support - currently only used to check if live activities is supported (thanks @ggirotto π).
- β¨ Example app support Material 3.
- π Fix tests.
- π Update README.md.
- β¬οΈ Upgrade dependencies.
- β¨ BREAKING CHANGE: Add the ability to handle multiple live notification (thanks @Clon1998 π).
Please follow this tutorial to add implement it:
- Add the following Swift extension at the end of your extension code:
extension LiveActivitiesAppAttributes {
func prefixedKey(_ key: String) -> String {
return "\(id)_\(key)"
}
}
- For each keys on your native Swift code, please changes the following lines:
let myVariableFromFlutter = sharedDefault.string(forKey: "myVariableFromFlutter") // repleace this by ...
let myVariableFromFlutter = sharedDefault.string(forKey: context.attributes.prefixedKey("myVariableFromFlutter")) // <-- this
- π Fix stall state for unknown activityId (thanks @Clon1998 π).
- π Now return
null
value when activity is not found ingetActivityState()
.
- β¨ Add url scheme optional argument.
- β¨ Add sinks unregister on engine end (thanks @ggirotto π).
- π Fix example images size.
- β¬οΈ Upgrade dependencies.
- π¨ Lint some code.
- π Fix deprecated tests.
- β¬οΈ Upgrade dependencies.
- π Method
areActivitiesEnabled()
are now callable on iOS < 16.1 - β¨ Creating an activity can now use stale-date (thanks @arnar-steinthors π).
- β¨ ActivityUpdate subclasses are now public along with a new MapOrNull method (thanks @arnar-steinthors π).
- β¨ Add missing "stale" activity status.
- π When value set to null in map, value is removed from live activity.
- π Fix missing
activityUpdateStream
implementation channel on native part.
- β¨π Change method
getPushToken()
to be synchronous. - β¬οΈ Upgrade dependencies.
- β¨ Add a way to track push token and the activity status (thanks @arnar-steinthors π).
- β»οΈ Format code.
- β¨ Add method to get push token (thanks to @jolamar π).
- β»οΈ Rework Swift code.
- π Add screenshots in pubspec.yaml
- β¨ End live activity when the app is terminated (thanks to @JulianBissekkou π).
- π Fix a bug where init never completes (thanks to @JulianBissekkou π).
- β¨ Can now pass assets between Flutter & Native.
- π Update README.md.
- π Update README.md.
- β¨ Now using App Groups to pass typed data across Flutter & Native !
- ποΈ Remove unused code in example.
- π Improve README.md.
- β¨ Add method to get the activity state (active, ended or dismissed).
- β¨ Add stream to handle url scheme from live activities &/or dynamic island.
- π Improve README.md
- β»οΈ Rework example
- β¨ Add method to check if live activities are enabled.
- β¨ Add method to get all activities ids created.
- β¨ Add method to cancel all activities.
- π Fix add result to all methods.
- π Initial release.