Is there an alternative to PRIORITY_MAX that is obsolete?

Asked

Viewed 36 times

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?

1 answer

2


Browser other questions tagged

You are not signed in. Login or sign up in order to post.