OneSignal / OneSignal-Flutter-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
https://www.onesignal.com
Other
606 stars 204 forks source link

Release 5.2.0 #889

Closed nan-li closed 1 month ago

nan-li commented 1 month ago

What's New

πŸŽ‰ Push to Start Live Activities

Starting with iOS 17.2, Live Activities can now be started via push notification (Apple's documentation). This change enhances the OneSignal SDK to provide application's access to the full suite of Live Activity functionality.

To use Push To Start Live Activities, see documentation on How to start a Live Activity with a remote push notification.

Default Live Activity The concept of a "Default" Live Activity has been established in the SDK, which eliminates the need for a customer app to define and manage their own ActivityAttributes. The primary use case of the "Default" Live Activity is to facilitate easier cross-platform adoption.

Four New APIs for Live Activities

OneSignal.LiveActivities.setupDefault()
OneSignal.LiveActivities.startDefault(activityId, activityAttributes, initialContentState)
OneSignal.LiveActivities.setPushToStartToken(String activityType, String token)
OneSignal.LiveActivities.removePushToStartToken(String activityType)

Please see the PR description for more details.

πŸ”§ Native SDK Dependency Updates

Update Android SDK from 5.1.10 to 5.1.13

Update iOS SDK from 5.1.6 to 5.2.0


This change is Reviewable