Push Notification issue in android marshmallow and lollipop
<p>I tried push notification its working fine in android JellyBean but same code not working marshmallow and lollipop.</p>

<p>Device getting other app notification like whatsapp,gmail.. cant say problem with settings also.</p>

<p>googled it some icon changes new versions but am not getting notification also, thanks guys :)</p>

<p>My Notification Code:</p>

<pre><code> NotificationIntent = new Intent(this, Activity.class);
        NotificationIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);

        NotificationPendingIntent = PendingIntent.getActivity(this, 0, NotificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);

        NotificationBuilder = new Notification.Builder(this)
                .setSmallIcon(R.mipmap.ic_launcher)
                .setContentTitle("GREEK NEWS")
                .setContentText(content)
                .setDefaults(Notification.DEFAULT_ALL)
                .setAutoCancel(true)
                .setContentIntent(NotificationPendingIntent);

        NotificationManager = (android.app.NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
        if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.JELLY_BEAN) {
            NotificationManager.notify(86, NotificationBuilder.build());
        } else {
            NotificationManager.notify(86, NotificationBuilder.getNotification());
        }
</code></pre>