github OneSignal/OneSignal-iOS-SDK 5.2.0
Release 5.2.0

latest release: 5.2.1
one 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.

NEW Preferred method to setup Live Activities with OneSignal
A new function OneSignal.LiveActivities.setup has been created which allows OneSignal to manage the lifecycle of a LiveActivity on behalf of the application. This includes listening for both pushToStart token updates and pushToUpdate token updates. When using this method, the application does not need to listen for pushToStart token updates, the starting of a live activity, nor update token updates. A typical usage looks like this:

OneSignal.LiveActivities.setup(MyWidgetAttributes.self)

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 SDK adoption.

Please see the PR description for more details.

  • Push to start live activities added to the SDK (#1377)

Other Changes

✨ Privacy Manifest Improvements

  • Add additional 6 privacy manifests to the 6 sub-targets that are included in the primary targets clients import (#1431)
  • Update User Defaults API reason to include app groups for appropriate modules (#1429)

🐛 Bug Fixes

  • [Bug] Fix rare scenario of dropping data when multiple logins are called (#1427)

Don't miss a new OneSignal-iOS-SDK release

NewReleases is sending notifications on new releases.