RongPushClient

public class RongPushClient

Constructors

Link copied to clipboard
public void RongPushClient()

Types

Link copied to clipboard
public enum ConversationType
Conversation Type Enumeration.

Functions

Link copied to clipboard
public static void cancelPushHeartBeat(Context context)
Link copied to clipboard
@Deprecated()
public static void checkManifest(Context context)
Helper method to verify whether the RCPush service configuration in the AndroidManifest is correct.
Link copied to clipboard
public static void clearAllNotifications(Context context)
Clears all notification messages in the notification bar.
Link copied to clipboard
public static void clearAllPushNotifications(Context context)
Clears all push notifications and background message notifications.
Link copied to clipboard
public static void clearAllPushServiceNotifications(Context context)
Clears all push notifications from background push services.
Link copied to clipboard
public static void clearNotificationById(Context context, int notificationId)
Clears the notification bar based on the notification ID.
Link copied to clipboard
public static PushType getCurrentPushType(Context context)
Retrieves the currently used push notification type.
Link copied to clipboard
public static PushEventListener getPushEventListener()
Retrieves the push event listener set at the application layer.
Link copied to clipboard
public static void init(Context context, String appKey)
Initialization.
public static void init(Context context, String appKey, InitOption initOption, boolean isPushEnable)
Initialization (call initialization in the main process of the application).
Link copied to clipboard
public static void recordHWNotificationEvent(Intent intent)
Tracks Huawei push click events.
Link copied to clipboard
@Deprecated()
public static void recordNotificationEvent(String pushId)
Records the click event of a push notification when using the backend push feature in the Developer Console.
public static void recordNotificationEvent(PushNotificationMessage pushNotificationMessage, PushType pushType)
Uploads the click event of a push notification.
Link copied to clipboard
public static void recordPushArriveEvent(Context context, PushType pushType, PushNotificationMessage pushNotificationMessage)
Upload push delivery event The push delivery rate in the developer console is calculated based on this event uploaded by the client.
Link copied to clipboard
public static void redirected(Context context)
Push service redirection.
Link copied to clipboard
@Deprecated()
public static void registerFCM(Context context)
Registers for FCM push notifications.
Link copied to clipboard
@Deprecated()
public static void registerGCM(Context context)
Registers for GCM push notifications.
Link copied to clipboard
@Deprecated()
public static void registerHWPush(Context context)
Registers for Huawei push notifications.
Link copied to clipboard
@Deprecated()
public static void registerMiPush(Context context, String miAppId, String miAppKey)
Registers Xiaomi Push.
Link copied to clipboard
@Deprecated()
public static void registerMZPush(Context context, String appId, String appKey)
Registers for Meizu push notifications.
Link copied to clipboard
public static void resolveHMSCoreUpdate(Activity activity)
Handles the logic for upgrading the HMS Core version below 3.0, which cannot obtain the token and triggers a pop-up prompt.
Link copied to clipboard
@Deprecated()
public static void resolveHWPushError(Activity activity, long errorCode)
Note: After upgrading Huawei Push to version 3.0, this interface has been deprecated and calling it has no effect.
Link copied to clipboard
public static void sendNotification(Context context, PushNotificationMessage notificationMessage)
public static void sendNotification(Context context, PushNotificationMessage notificationMessage, int left)
Sends a notification.
Link copied to clipboard
public static void sendPushPing(Context context)
Link copied to clipboard
public static void setNotifiationSound(Uri uri)
Sets the notification ringtone URI, which must be an absolute path.
Link copied to clipboard
public static void setPushConfig(PushConfig config)
Configures push-related settings.
Link copied to clipboard
public static void setPushEventListener(PushEventListener listener)
Set the push event listener.
Link copied to clipboard
@Deprecated()
public static void stopRongPush(Context context)
Stops the RCpush notification service.
Link copied to clipboard
public static void stopRongPushService(Context context)
Link copied to clipboard
public static void stopService(Context context)
Stops RCpush services.
Link copied to clipboard
public static void updatePushContentShowStatus(Context context, boolean isShow)