I don't know how I can show a notification on lock screen . This is my notification :
public static void getSynchronizeNotification(Context context, DataResponse dataResponse) {
    Bitmap Largeicon = BitmapFactory.decodeResource(context.getResources(), R.drawable.ic_launcher);
    NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
    notificationManager.cancel(NOTIFICATION_SYNCHRONIZE_ID);
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, new Intent(), 0);
Notification notification = new Notification.Builder(context)
        .setContentTitle(context.getString(R.string.app_name))
        .setSmallIcon(R.drawable.ic_launcher)
        .setContentIntent(pendingIntent)
        .setContentText("Zmiany po synchronizacji...")
        .setStyle(new Notification.BigTextStyle().bigText(buildNotificationAfterSynchronizeText(dataResponse)))
        .setLargeIcon(Largeicon)
        .setAutoCancel(true)
        .setVibrate(vibratePattern)
        .setSound(alarmSound)
        .setPriority(Notification.PRIORITY_MAX)
        .build();
notification.flags = Notification.DEFAULT_LIGHTS | Notification.FLAG_AUTO_CANCEL;
notificationManager.notify(NOTIFICATION_SYNCHRONIZE_ID, notification);
}
 
    