Android setFullScreenIntent() execute the PendingIntent when notification reach and phone is locked

It's not working on my Android 8.1. If set the intent to null, it will become the normal notification without persist over heads-up area.

builder.setFullScreenIntent(null, true);

If you do not want to execute the FullScreen Intent when notification reached,just set an empty PendingIntent to FullScreen Intent.

PendingIntent fullScreenIntent = PendingIntent.getActivity(GcmIntentService.this, requestCode, new Intent(), PendingIntent.FLAG_UPDATE_CURRENT); builder.setFullScreenIntent(fullScreenIntent, true);