RemoteMessage.Notification

public static class RemoteMessage.Notification extends Object

Remote Firebase notification details.

This class maps to the fields of a notification message.

Public Method Summary

String
String[]
String
String
getChannelId()
Gets the channel id from the notification.
String
String
String
Uri
getLink()
Gets the deep link from the notification.
String
String
String
String[]
String

Inherited Method Summary

Public Methods

public String getBody ()

public String[] getBodyLocalizationArgs ()

public String getBodyLocalizationKey ()

public String getChannelId ()

Gets the channel id from the notification. Note that this method does not perform verification on the existence of a channel, nor does it fallback to the manifest defined default or the default FCM channel.

Returns
  • channel id that was provided when the message was sent, null otherwise.

public String getClickAction ()

public String getColor ()

public String getIcon ()

public Uri getLink ()

Gets the deep link from the notification.

Returns
  • The deep link if it was set, null otherwise.

public String getSound ()

public String getTag ()

public String getTitle ()

public String[] getTitleLocalizationArgs ()

public String getTitleLocalizationKey ()

发送以下问题的反馈:

此网页
需要帮助?请访问我们的支持页面