We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25505d2 commit b2d50f9Copy full SHA for b2d50f9
android/capacitor/src/main/java/com/getcapacitor/plugin/notification/NotificationChannelManager.java
@@ -82,7 +82,7 @@ public void createChannel(JSObject channel) {
82
}
83
AudioAttributes audioAttributes = new AudioAttributes.Builder()
84
.setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION)
85
- .setUsage(AudioAttributes.USAGE_ALARM).build();
+ .setUsage(AudioAttributes.USAGE_NOTIFICATION).build();
86
Uri soundUri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + context.getPackageName() + "/raw/" + sound);
87
notificationChannel.setSound(soundUri, audioAttributes);
88
0 commit comments