PushEventListener

public interface PushEventListener

Functions

Link copied to clipboard
public abstract void afterNotificationMessageArrived(Context context, PushType pushType, PushNotificationMessage notificationMessage)
Callback triggered when a push notification delivery event is received from a third-party push platform.
Link copied to clipboard
public void onGetTokenError(PushType pushType, long code, String errorMessage)
Callback for failed token retrieval
Link copied to clipboard
public void onGetTokenServer(boolean isSuccess)
Callback for obtaining the push token reporting server address
Link copied to clipboard
public abstract boolean onNotificationMessageClicked(Context context, PushType pushType, PushNotificationMessage notificationMessage)
Callback triggered when a notification is clicked.
Link copied to clipboard
public void onPreferPushType(List<PushType> preferType)
Callback for obtaining the most suitable push notification type
Link copied to clipboard
public void onPushConfigInitFinish(Builder pushConfig)
Push configuration parsed when using the Push 2.0 plugin.
Link copied to clipboard
public void onStartRegister(List<PushType> preferTypes)
Starts push notification registration
Link copied to clipboard
public List<TokenBean> onStartTokenReport(List<TokenBean> tokenList)
This method is called when the SDK is about to report the push token.
Link copied to clipboard
public abstract void onThirdPartyPushState(PushType pushType, String action, long resultCode)
Third-party push notification status callback
Link copied to clipboard
public abstract void onTokenReceived(PushType pushType, String token)
Received Push Token Callback
Link copied to clipboard
public abstract void onTokenReportResult(PushType reportType, int code, PushType finalType, String finalToken)
public void onTokenReportResult(PushType reportType, int code, PushType finalType, String finalToken, String message)
Token Reporting Callback
public void onTokenReportResult(PushType reportType, int code, PushType finalType, String finalToken, String message, Map<String, String> failMap)
Token report callback
Link copied to clipboard
public abstract boolean preNotificationMessageArrived(Context context, PushType pushType, PushNotificationMessage notificationMessage)
Callback before the notification is displayed.