You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Use in conjunction with the `onesignalWidgetURL` modifier. Handle a URL opened in the app to track Live Activity clicks. Call this method from your app's URL handling code
75
+
(e.g., `application(_:open:options:)` in AppDelegate or `onOpenURL` in SwiftUI).
76
+
77
+
- Parameters:
78
+
- url: The URL that was opened, which may be a OneSignal Live Activity click tracking URL.
Copy file name to clipboardExpand all lines: iOS_SDK/OneSignalSDK/OneSignalOSCore/Source/OSStubLiveActivities.swift
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,4 +31,8 @@ public class OSStubLiveActivities: NSObject, OSLiveActivities {
31
31
OneSignalLog.onesignalLog(.LL_ERROR, message:"OneSignalLiveActivities not found. In order to use OneSignal's LiveActivities features the OneSignalLiveActivities module must be added.")
OneSignalLog.onesignalLog(.LL_ERROR, message:"OneSignalLiveActivities not found. In order to use OneSignal's LiveActivities features the OneSignalLiveActivities module must be added.")
0 commit comments