Class PushManager
- 
                    
                    - All Implemented Interfaces:
 
 public class PushManagerThe primary management class for push notification initialization configuration 
- 
                
                    
                    - 
                                
                            
                                Field SummaryFields Modifier and Type Field Description public PushConfigpushConfigpublic longconfigIdpublic PushTypeserverPushType
 - 
                                
                            
                                Method SummaryModifier and Type Method Description PushConfiggetPushConfig()longgetConfigId()PushTypegetServerPushType()static PushManagergetInstance()voidinit(Context context, PushConfig pushConfig)voidonReceiveToken(Context context, PushType pushType, String token)Receives the token information returned by the third-party push notification platform. voidonReceiveToken(Context context, PushType pushType, String token, String area)Receives the token information returned by the third-party push notification platform. voidonReceiveToken(Context context, PushType pushType, String token, String area, boolean internal)voidonSuccessResponse(Context context, PushType pushType, List<TokenBean> tokenList, Map<String, String> failMap)Configuration successful handling voidonNetworkChangeEvent(Context context)Network change reconfiguration event voidregisterRong(Context context, PushType pushType)Registers the corresponding platform's registration interface based on the push type. voidonErrorResponse(Context context, PushType pushType, String action, long resultCode)Handling of failed token request to third-party platform event voidonNotificationMessageArrived(Context context, PushType pushType, PushNotificationMessage pushNotificationMessage)Callback triggered when a push notification is received. voidonNotificationMessageClicked(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. voidonPushRawData(Context context, PushType pushType, String data)Receives transparently transmitted message data voidupdatePushServerInfoFromToken(String token)- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        getPushConfigPushConfig getPushConfig() 
 - 
                                        getConfigIdlong getConfigId() 
 - 
                                        getServerPushTypePushType getServerPushType() 
 - 
                                        getInstancestatic PushManager getInstance() 
 - 
                                        initvoid init(Context context, PushConfig pushConfig) 
 - 
                                        onReceiveTokenvoid onReceiveToken(Context context, PushType pushType, String token) Receives the token information returned by the third-party push notification platform. - Parameters:
- context- The context.
- pushType- The push notification type.
- token- The token information returned by the third-party push notification platform.
 
 - 
                                        onReceiveTokenvoid onReceiveToken(Context context, PushType pushType, String token, String area) Receives the token information returned by the third-party push notification platform. - Parameters:
- context- The context.
- pushType- The push notification type.
- token- The token information returned by the third-party push notification platform.
 
 - 
                                        onReceiveTokenvoid onReceiveToken(Context context, PushType pushType, String token, String area, boolean internal) 
 - 
                                        onSuccessResponsevoid onSuccessResponse(Context context, PushType pushType, List<TokenBean> tokenList, Map<String, String> failMap) Configuration successful handling 
 - 
                                        onNetworkChangeEventvoid onNetworkChangeEvent(Context context) Network change reconfiguration event - Parameters:
- context- The context
 
 - 
                                        registerRongvoid registerRong(Context context, PushType pushType) Registers the corresponding platform's registration interface based on the push type. - Parameters:
- pushType- The push type
 
 - 
                                        onErrorResponsevoid onErrorResponse(Context context, PushType pushType, String action, long resultCode) Handling of failed token request to third-party platform event - Parameters:
- context- The context
- pushType- The push notification type
- action- The action corresponding to this error
- resultCode- The error code returned by the third-party platform
 
 - 
                                        onNotificationMessageArrivedvoid onNotificationMessageArrived(Context context, PushType pushType, PushNotificationMessage pushNotificationMessage) Callback triggered when a push notification is received. When using third-party notification methods, this event is called after the notification is displayed by the mobile system layer. When this method is called, the notification has already been displayed, so it is not possible to customize the notification appearance. - Parameters:
- context- The context
- pushType- The type of push notification
- pushNotificationMessage- The notification message
 
 - 
                                        onNotificationMessageClickedvoid 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. They are directly handled by the broadcast receiver . - Parameters:
- context- Context
- pushType- Push type
- pushNotificationMessage- Notification message
 
 - 
                                        onPushRawDatavoid onPushRawData(Context context, PushType pushType, String data) Receives transparently transmitted message data 
 - 
                                        updatePushServerInfoFromTokenvoid updatePushServerInfoFromToken(String token) 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-