react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

Not playing Alarm Sound when mobile is on Silent Mode

Open musawarbilal786 opened this issue 2 years ago • 1 comments

Question

So I'm trying to implement a custom alarm app that could schedule alarm and then run a push notification with custom sound on a scheduled time.

I am using React-Native-Push-Notification for my Alarm APP, everything is working fine but in silent mode, it does not play Alarm sound.

I'm scheduling Alarm by using PushNotification.localNotificationSchedule()

Here is code of localNotificationSchedule:

PushNotification.localNotificationSchedule({ channelId: "alarm-channel", title: alarmNotifData.title, id: alarmNotifData.id, message: alarmNotifData.message, date: alarmNotifData.fire_date, actions: ["Snooze", "Stop Alarm"], importance: Importance.HIGH, playSound: true, soundName: "default", allowWhileIdle: true, invokeApp: false, });

musawarbilal786 avatar Mar 01 '23 14:03 musawarbilal786

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Mar 01 '24 00:03 github-actions[bot]