invertase / notifee

⚛️ A feature rich notifications library for React Native.
https://notifee.app
Apache License 2.0
1.88k stars 228 forks source link

IOS: A local notification without sound and vibration #1019

Closed pavelustenko closed 6 months ago

pavelustenko commented 8 months ago

Hi! I'm trying to make a silent notification in my app (no vibration and no sound, just notification). In apple developers forum I found that setting "sound" property to nil in Notification Service does the thing for background notification. This works. But I could not get the same effect for local notifications.

const noti: Notification = {
id: uuidv4(),
title: 'test title',
body: 'test body',
ios:{
 threadId: getThreadId(),
 sound: undefined,
}
};
await notifee.displayNotification(noti);

But this doesn't work as expected, still plays the default sound with vibration. I ended up with playing silent mp3 for this case, but I can not disable a vibration.

github-actions[bot] commented 7 months ago

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.