I'm trying to display a local notification without a sound using react-native-firebase, is that possible?
I have tried playing around with the AndroidNotification class, but couldn't find a way to do this.
const notification = new firebase.notifications.Notification()
.setNotificationId("notificationId")
.setTitle("Title")
.setBody("Text")
.android.setBigText("Big Text")
.android.setColor("#f04e29")
.android.setAutoCancel(true)
.android.setOnlyAlertOnce(true)
.android.setChannelId("channel")
.android.setLargeIcon("ic_launcher")
.android.setSmallIcon("ic_notification");
firebase.notifications().displayNotification(notification);
I would like for the notification to be displayed without any noise at all.