Make persistent notification not peak on every update on Oreo.
This commit is contained in:
parent
73d7d98354
commit
4d1515769f
1 changed files with 1 additions and 0 deletions
|
@ -138,6 +138,7 @@ public class PersistentNotificationPlugin extends PluginBase {
|
|||
|
||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(ctx, CHANNEL_ID);
|
||||
builder.setOngoing(true);
|
||||
builder.setOnlyAlertOnce(true);
|
||||
builder.setCategory(NotificationCompat.CATEGORY_STATUS);
|
||||
builder.setSmallIcon(R.drawable.ic_notification);
|
||||
Bitmap largeIcon = BitmapFactory.decodeResource(ctx.getResources(), R.mipmap.blueowl);
|
||||
|
|
Loading…
Reference in a new issue