sendNotification

public static void sendNotification(Context context, PushNotificationMessage notificationMessage)

Sends a notification. If using IMLib for development, when the application is in the background and needs to display a notification, this function can be directly called to show the notification.

Parameters

context

The context.

notificationMessage

The notification message exposed by RongCloud.


public static void sendNotification(Context context, PushNotificationMessage notificationMessage, int left)

Sends a notification. If developing with IMLib, when the app is in the background and requires a background notification, this function can be directly called to display the notification.

Parameters

context

The context.

notificationMessage

The notification message exposed by RongCloud.

left

The count of offline messages.