Browse Source

Merge pull request #192 from tb123123/patch-1

Do not inherit any notification defaults
Sebastián Katzer 11 năm trước cách đây
mục cha
commit
a33413a173
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/android/Receiver.java

+ 1 - 0
src/android/Receiver.java

@@ -119,6 +119,7 @@ public class Receiver extends BroadcastReceiver {
         Uri sound = options.getSound();
 
         Builder notification = new NotificationCompat.Builder(context)
+            .setDefaults(0) // Do not inherit any defaults
             .setContentTitle(options.getTitle())
             .setContentText(options.getMessage())
             .setNumber(options.getBadge())