Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
One Line Summary
Live Activities Support (iOS Only).
Details
This change takes advantage of the newest changes to the iOS SDK, which gives apps the ability to utilize the OneSignal platform to drive Live Activity content-state updates.
See Apple's documentation for more information on ActivityKit.
See OneSignal's documentation for information on how OneSignal and LiveActivities work together.
This change does the following:
Task<bool> EnterLiveActivity(string activityId, string token)
which is used to register the device with OneSignal indicating that the device has entered a live activity. The method expects an app-providedactivityId
to identify the activity being entered, and an iOS-providedtoken
to be used to drive content-state updates to the device.Task<bool> ExitLiveActivity(string activityId)
which is used to unregister the device with OneSignal indicating that the device has exited a live activity. The method expects an app-providedactivityId
to identity the activity being exited.Motivation
In support of new iOS functionality.
Scope
This change adds 2 additional public methods, which invokes newly added functionality to the iOS SDK. These changes are not applicable to Android. They also do not effect existing functionality.
Testing
Manual testing
Temporary test code was created to drive the newly created methods to ensure correct behavior. On iOS the expected behavior is the call forwarded to the underlying iOS functionality. On Android the expected behavior is a log message and a failure return.
Affected code checklist
Checklist
Overview
Testing
Final pass
This change is