File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
OneSignalSDK/onesignal/src/main/java/com/onesignal Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,12 @@ class GenerateNotificationOpenIntent(
74
74
PendingIntent .FLAG_UPDATE_CURRENT
75
75
)
76
76
77
- // Launch desired Activity we want the user to be take to the followed by
78
- // OneSignal's invisible notification open tracking Activity
79
- // This allows OneSignal to track the click, fire OSNotificationOpenedHandler, etc while allowing
80
- // the app developer to set the Activity they want at notification creation time. (FUTURE API FEATURE)
81
- // AKA "Reverse Activity Trampolining"
77
+
78
+ // This setups up a "Reverse Activity Trampoline"
79
+ // The first Activity to launch will be oneSignalIntent, which is an invisible
80
+ // Activity to track the click, fire OSNotificationOpenedHandler, etc. This Activity
81
+ // will finish quickly and the destination Activity, launchIntent, will be shown to the user
82
+ // since it is the next in the back stack.
82
83
return PendingIntent .getActivities(
83
84
context,
84
85
requestCode,
@@ -115,4 +116,4 @@ class GenerateNotificationOpenIntent(
115
116
116
117
return launchIntent
117
118
}
118
- }
119
+ }
You can’t perform that action at this time.
0 commit comments