hirbod / react-native-volume-manager

React Native module which adds the ability to change the system volume on iOS and Android, listen to volume changes and supress the native volume UI to build your own volume slider or UX. It can listen to iOS mute switch and ringer mode changes on Android (and let you set the ringer mode)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Seeking Assistance to Implement Notification Volume Adjustment Based on User Settings

zubyrbutt opened this issue · comments

Hi there,

I am currently working on a feature in my app that involves updating the notification volume according to user preferences. I'm seeking guidance and assistance on how to successfully implement this functionality.

The goal is to allow users to customize the notification volume within the app, ensuring a personalized and user-friendly experience. I would appreciate any insights, suggestions, or code snippets that could help me achieve this feature.

Thank you in advance for your support!

Screenshot_1702534584

I've found the solution.
pass this object { type: 'notification' }
await VolumeManager.setVolume(e, { type: 'notification' });
Thanks for the wonderful library.❤️