clearLaunchNotification
Clears the launch notification data.
After calling this method, getLaunchNotification will return null until the app is launched from another push notification. This is useful to prevent processing the same launch notification multiple times. Example:
PushMessage launchNotification = Pushwoosh.getInstance().getLaunchNotification();
if (launchNotification != null) {
// Process the launch notification
handlePushMessage(launchNotification);
// Clear it to prevent reprocessing
Pushwoosh.getInstance().clearLaunchNotification();
}
Content copied to clipboard