Please provide the following:
- SDK Version:43
- Platforms(Android/iOS/web/all): ios
- Add the appropriate “Tag” based on what Expo library you have a question on.
expo-notifications does not trigger sound when fired.
here is the snack example
this example is taken from Notifications - Expo Documentation
shouldPlaySound is set true in my example
tested this on multiple iOS devices.
still can’t confirm if this is bug on expo/react-native end or iOS
Hey @florianmatthias.code, you need to add the sound
property to the scheduleNotificationAsync
arg object like so:
await Notifications.scheduleNotificationAsync({
content: {
title: "You've got mail! 📬",
body: 'Here is the notification body',
data: { data: 'goes here' },
sound: true
},
trigger: { seconds: 2 },
});
Cheers,
Adam
2 Likes
system
Closed
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.