2
I’m using the class NotificationCompat.Builder
to create a notification where it has to be at the top with the highest priority.
I set the notification priority as follows:
notification.setPriority(Notification.PRIORITY_MAX);
However, Android Studio says the field PRIORITY_MAX
this deprecated.
Question
Therefore, I would like to know if there is any alternative to PRIORITY_MAX
and which is not deprecated or obsolete?