PushManager

public class PushManager

The primary management class for push notification initialization configuration

Properties

Link copied to clipboard
public long configId
Unique ID used to distinguish this push notification configuration, with the value set as the timestamp when the configuration starts
Link copied to clipboard
public PushConfig pushConfig
Link copied to clipboard
public PushType serverPushType

Functions

Link copied to clipboard
public long getConfigId()
Link copied to clipboard
public static PushManager getInstance()
Link copied to clipboard
public PushConfig getPushConfig()
Link copied to clipboard
public PushType getServerPushType()
Link copied to clipboard
public void init(Context context, PushConfig pushConfig)
Link copied to clipboard
public void onErrorResponse(Context context, PushType pushType, String action, long resultCode)
Handling of failed token request to third-party platform event
Link copied to clipboard
public void onNetworkChangeEvent(Context context)
Network change reconfiguration event
Link copied to clipboard
public void onNotificationMessageArrived(Context context, PushType pushType, PushNotificationMessage pushNotificationMessage)
Callback triggered when a push notification is received.
Link copied to clipboard
public void onNotificationMessageClicked(Context context, Intent pushIntent, PushType pushType, PushNotificationMessage pushNotificationMessage)
Callback triggered when a push notification is clicked Push click events from RongCloud's built-in channel will not trigger here due to cross-process communication.
Link copied to clipboard
public void onPushRawData(Context context, PushType pushType, String data)
Receives transparently transmitted message data
Link copied to clipboard
public void onReceiveToken(Context context, PushType pushType, String token)
public void onReceiveToken(Context context, PushType pushType, String token, String area)
Receives the token information returned by the third-party push notification platform.
public void onReceiveToken(Context context, PushType pushType, String token, String area, boolean internal)
Link copied to clipboard
public void onSuccessResponse(Context context, PushType pushType, List<TokenBean> tokenList, Map<String, String> failMap)
Configuration successful handling
Link copied to clipboard
public void registerRong(Context context, PushType pushType)
Registers the corresponding platform's registration interface based on the push type.
Link copied to clipboard
public void updatePushServerInfoFromToken(String token)