App Push Destination URL & Tracking Guide - beBit-tech/bebit-tech-android-app-sdk GitHub Wiki
Purpose
To effectively track user behavior related to app push notifications, specific actions are required upon receiving app push data.
For Version 1.0.6 or Higher
For version 1.0.10 and above, you can simply use the handleNotification method to track the click of the app push.
Usage
Parameters
- notification data: the data of the push notification
- isUserClicked: Wether to track this push notification
OmniSegment.handleNotification(data, true);
Example
public static class NotificationTrampolineActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// 從 Intent 中取出 push notification 的資料
@SuppressWarnings("unchecked")
Map<String, String> data = (Map<String, String>) getIntent().getSerializableExtra("extra_data");
// 追蹤 push notification 點擊事件
OmniSegment.handleNotification(data, true);
}
}
For Versions Below 1.0.6
For those versions below 1.0.6, for more detailed instructions, refer to the App Push Destination URL & Tracking Guide.