Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS: A local notification without sound and vibration #1019

Closed
pavelustenko opened this issue Apr 1, 2024 · 1 comment
Closed

IOS: A local notification without sound and vibration #1019

pavelustenko opened this issue Apr 1, 2024 · 1 comment

Comments

@pavelustenko
Copy link

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.

@pavelustenko pavelustenko changed the title A local notification without sound and vibration IOS: A local notification without sound and vibration Apr 1, 2024
Copy link

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.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant