title: How to show heads up notification in Oreo or higher
body: <p>I  think  heads up notification disable in android 8.0  but android's built-in message have this feature even on running android 8.0 .
  I know how to show heads up notification lower than 8.0 device by setting vibration to notification. But vibration on notification running Oreo is deprecated. So i go and search in internet and someone says enabling setVibrationPattern to notification channel  will works. But saddly this not works .</p>
  
  <p>So here is my code .</p>
  
  <pre><code>Notification  builder = new NotificationCompat.Builder(MainActivity.this)
                              .setAutoCancel(true)
                              .setWhen(System.currentTimeMillis())
                              .setSmallIcon(R.drawable.ic_android_black_24dp)
                              .setChannelId(id)
                              .setPriority(Notification.PRIORITY_HIGH)
                              .setColor(setActionColor(counter))
                              .setColorized(true)
                              .setContentIntent(pendingIntent)
                              .build();
  
  //Notification channel code.
  
  NotificationChannel chan2 = new NotificationChannel(SECONDARY_CHANNEL,
                              getString(R.string.noti_channel_second), NotificationManager.IMPORTANCE_HIGH);
                      chan2.setLightColor(Color.BLUE);
                      chan2.setLockscreenVisibility(Notification.VISIBILITY_PUBLIC);
                      manager.createNotificationChannel(chan2);
                      manager.notify(notificationID, builder);
  </code></pre>