Merged
Conversation
c22b068 to
ef32d54
Compare
3f044ac to
2a2d695
Compare
cstyles
reviewed
Oct 17, 2025
| return false | ||
| } | ||
|
|
||
| // TODO: ⚠️ What is the path, method, and parameters |
There was a problem hiding this comment.
We're reusing pushopen. See this turbine PR: https://github.com/OneSignal/turbine/pull/1628
Nope, we're going to add a new handler to live-activities-http.
Contributor
Author
There was a problem hiding this comment.
Paths updated, everything should be ready to go
Base automatically changed from
feat/live_activities_receive_receipts
to
main
October 20, 2025 20:43
b7f9ec4 to
ef32d54
Compare
7e26c8e to
ea1ddcd
Compare
jkasten2
approved these changes
Jan 6, 2026
This is the skeleton, we still need to finalize the path and parameters
Add extension method `onesignalWidgetURL` to View and DynamicIsland that is modeled after the corresponding `widgetURL` methods in WidgetKit.
Developers call the `OneSignal.LiveActivities.trackClickAndReturnOriginal(url)` method to provide OneSignal the click tracking metadata. This method returns the intended original URL, with which they use to navigate their users.
notification ID may be nullable if the live activity is started in-app
* Use OneSignal-aware activity in the demo app * Add onesignalWidgetURL to all OneSignal-aware activities in the demo app
* Add tests for live activity click events * Refactor generateTrackingDeepLink helper method to be testable, and move to enum namespace (internal by default) * Update the URL in the example app to be more complex
73b2453 to
029fe49
Compare
Merged
This was referenced Jan 9, 2026
This was referenced Jan 26, 2026
This was referenced Jan 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Add click events for live activities, which requires considerable client integration.
Details
There are no APIs available to know of click events on a live activity or widget. The workaround implemented is to leverage deep linking and query params to know of a click and the associated live activity data.
Apple documentation:
Motivation
Add analytics for Live Activities
Scope
onesignalWidgetURLmodifier.trackClickAndReturnOriginal.New APIs:
Widget modifier
The
onesignalWidgetURLsets the URL to open in the containing app when the user clicks the widget.Click tracking method
The
trackClickAndReturnOriginalis used in conjunction with theonesignalWidgetURLmodifier. Handle a URL opened in the app to track Live Activity clicks. Call this method from your app's URL handling code.Internal Details
Example of parsing:
https://example.com/page?param1=value1¶m2=value2#sectionas the URLonesignal-liveactivity://track/click?clickId=B5CF3848-9193-4B21-A99A-A702389BE7E4&activityId=cab&activityType=ExampleAppFirstWidgetAttributes¬ificationId&redirect=https://example.com/page?param1%3Dvalue1%26param2%3Dvalue2%23sectionOneSignal.LiveActivities.trackClickAndReturnOriginal(url)will returnhttps://example.com/page?param1=value1¶m2=value2#sectionTesting
Unit testing
Manual testing
iPhone 13 on iOS 18.6.2
Affected code checklist
Checklist
Overview
Testing
Final pass
This change is