这是我用来显示通知的代码。
notification = new Notification.Builder(context).setContentIntent(contentIntentTwo)
.setContentTitle("App name").setSmallIcon(R.drawable.ic_launcher).setLargeIcon(notificationLargeIconBitmap).getNotification();
通知和通知图标会在下拉通知抽屉中显示,但在棒棒糖(Lollipop)中不会在状态栏中显示。以下是棒棒糖中的情况:
![enter image description here](https://istack.dev59.com/CdZ9Y.webp)
只有在棒棒糖中出现这种情况。