Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 5.2.0 #889

Merged
merged 1 commit into from
May 16, 2024
Merged

Release 5.2.0 #889

merged 1 commit into from
May 16, 2024

Conversation

nan-li
Copy link
Contributor

@nan-li nan-li commented May 16, 2024

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.

  • A new function OneSignal.LiveActivities.setupDefault() which tells the OneSignal SDK to manage the LiveActivity lifecycle for the DefaultLiveActivityAttributes type. When calling this method, a customer can use both push-to-start and push-to-update notifications to start/update/end their Default Live Activity.
  • A new function OneSignal.LiveActivities.startDefault(activityId, activityAttributes, initialContentState) which allows a customer app to start a live activity based on the DefaultLiveActivityAttributes type "in app".

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

  • For full changes, see the native release notes
    πŸ› Bug Fixes
  • [Fix] grouping skipping opRepoPostCreateDelay, causing operations being applied out of order when multiple login operations are pending. (fixes issue since 5.1.10) (2087)
  • [Fix]: Cancelling permission request dialog does not fire continuation (2085)
  • [Fix] RecoverFromDroppedLoginBug not running in very rare cases (2084)
  • Fix the ANR issue caused by prolonged loading of OperationRepo and potentially by extended holding of the model lock during disk I/O read operations. (2068)
    πŸ”§ Maintenance
  • Add HTTP header OneSignal-Install-Id that allows the OneSignal's backend know where traffic is coming from (2072)

Update iOS SDK from 5.1.6 to 5.2.0

  • 5.2.0 Release Notes
  • ✨ Privacy Manifest Improvements
  • πŸ› [Bug] Fix rare scenario of dropping data when multiple logins are called (1427)

This change is Reviewable

@nan-li nan-li requested review from jkasten2 and emawby May 16, 2024 21:32
@nan-li nan-li merged commit b9e6c44 into main May 16, 2024
2 checks passed
@nan-li nan-li deleted the rel/5.2.0 branch May 16, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants