The SDK supports tracking of certain events - App Install, App Open and Notification tracking natively. For these events the application doesn't need to call any method.
This event is called by the SDK to send the referrer details received when the application is installed.
This event is called when the initialization() method is called. This happens each time the user starts the application.
The App Open event can be called with additional parameters using the following method:
Note: In this case the App Open event will be triggered twice as it has already been called inside the SDK
HashMap<String, Object> additionalParams = new HashMap<>(); /** fill values inside additionalParams **/ Blueshift.getInstance(context).trackAppOpen(additionalParams, canBatchThisEvent);
These events enable accurate tracking and statistics around push notifications. If the application uses different framework/methods to render the push notifications, the below methods would need to be implemented to ensure accurate tracking of push notifications.
- Notification View
Called when a push message is received and a notification is displayed to the user.
- Notification Click
Called when the user clicks on the notification or any button on the notification.
- Notification - App Open
Called when a page from the application is opened by the user clicking on the notification.
- Notification - Dismiss Alert
Called when user clicks on the "dismiss" button of the dialog type notifications.