Can I use costom sound in LocalNotification?

#1

I wanna use costom sound in localnotification.

const localnotification = {
    title: 'Notification',
    body: 'Notification',
    android: {
    sound: true
},
    ios: {
        sound: true // can I use custom sound? exmaple "./sound/audio.mp3" require("./sound/audio/audio.mp3")
    }
}
Notifications.scheduleLocalNotificationAsync(
        localnotification,
        schedulingOptions
)
0 Likes

#2

Hey @yutten,

This isn’t possible with the Expo Notifications API. You would have to detach and use a third-party library that enables you to provide custom sounds.

Cheers,

Adam

0 Likes

closed #3

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.

0 Likes