private void createNotificationChannel() {
    NotificationManager mNotificationManager =
        (NotificationManager) getContext().getSystemService(Context.NOTIFICATION_SERVICE);
    CharSequence name = getString(R.string.imagepipeline_notification_channel_name);

    int importance =
        NotificationManager
            .IMPORTANCE_HIGH; // high importance shows the notification on the user screen.

    NotificationChannel mChannel =
        new NotificationChannel(NOTIFICATION_CHANNEL_ID, name, importance);
    mNotificationManager.createNotificationChannel(mChannel);
  }
Fragment that illustrates how to use the image pipeline directly in order to create
notifications.
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/imagepipeline/ImagePipelineNotificationFragment.java