how can i change the sound of localnotifications and where i store it
I have a blog post about local notifications, it only touches on the sound effect in the end (http://www.roblouie.com/article/273/ionic-local-notifications-part-1-the-hidden-details/), but you can check the sample github project to see the sound effect part: https://github.com/roblouie/ionic-local-notification-examples
You can put it anywhere, in the example I put it in the assets folder, and it works fine:
LocalNotifications.schedule({
id: 5,
text: 'Custom sound',
data: { testData: "ABC" },
icon: 'file://assets/icon/icon-small.png',
smallIcon: 'res://drawable-hdpi/icon.png',
sound: 'file://assets/sound/sound-effect.mp3',
at: newDate
});
}
1 Like