当我推送通知时,图标未在android o中显示 在Android Lollipop中,当我从Firebase云消息推送通知时,该图标显示为小。我在android p中尝试过,它运行良好,没有任何问题。
我的代码
通知频道ID
mynumber
收到消息
private static final String channelId = "445";
我的通知
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
// Check if message contains a notification payload.
if (remoteMessage.getNotification() != null) {
Log.d(TAG, "Message Notification Body: " + remoteMessage.getNotification().getBody());
String getTitle = (remoteMessage.getNotification().getTitle() != null ? remoteMessage.getNotification().getTitle() : getString(R.string.app_name));
sendNotification(getTitle,remoteMessage.getNotification().getBody());
}
}