It seems to me that this should be trivial, but I can not show the notification on the phone screen - it is displayed only in the status bar at the top.
For an example of what I want to do, here is how Facebook Messenger appears on the screen when you receive a message.

Whenever I send a notification, everything it does shows a small icon in the status bar - even if I set the priority to PRIORITY_MAX. Is there any other parameter I need to make it appear on the screen instead of the status bar?
Notification Display Code:
PendingIntent contentIntent = PendingIntent.getActivity(context, nextId++, intent, PendingIntent.FLAG_CANCEL_CURRENT); Notification.Builder builder = new Notification.Builder(context) .setContentTitle(title) .setContentText(description) .setContentIntent(contentIntent) .setSmallIcon(R.drawable.ic_stat_notification) .setLargeIcon(largeIcon) .setPriority(Notification.PRIORITY_DEFAULT) .setAutoCancel(true) .setDefaults(Notification.DEFAULT_ALL); if (android.os.Build.VERSION.SDK_INT >= 21) { builder.setColor(context.getResources().getColor(R.color.orange_500)) .setVisibility(Notification.VISIBILITY_PUBLIC); } Notification notification = builder.build(); notificationManager.notify(id, notification);
source share