I using cordova local notification for alarm play sound.
var sound = '../Library/NoCloud/CryOnMyShoulder.wav';
cordova.plugins.notification.local.schedule({
id: 1,
title: 'Scheduled with delay',
text: 'Test Message 1',
at: _5_sec_from_now,
sound: sound,
badge: 12
});
I try "sound" variable with
- '../Library/NoCloud/CryOnMyShoulder.wav'
- 'file://../Library/NoCloud/CryOnMyShoulder.wav'
- cordova.file.dataDirectory + 'CryOnMyShoulder.wav'
=> Sound don't working, notify is showing in notify center but haven't sound. Could you please help me solve this problem?