Android NotificationManager giving me “no valid small icon” error

前端 未结 4 1782
悲&欢浪女
悲&欢浪女 2020-12-30 20:14

I am having a strange error with notification manager.

@Override
public void onMessageReceived(String from, Bundle data)
{
     Log.i(TAG, \"IP : \" + (Strin         


        
4条回答
  •  时光说笑
    2020-12-30 20:39

    You have not called setSmallIcon() on the NotificationCompat.Builder. This provides the icon that will go in the status bar while the Notification is active.

提交回复
热议问题