title: Cordova Local Notification playing local sound for iOS and Android
body: <p>I building an alarm app with phonegap/cordova local notification plugin. Everything is working on the android version except that seem not to be able to play custom sound from my local folder.</p>
  
  <p>This is the location of the sound file in my assets folder</p>
  
  <p>www/sound/whistle.mp3</p>
  
  <p>and this is the javascript code i used in the cordova app for playing the alert sound from the assets folder</p>
  
  <pre><code>window.plugin.notification.local.add({ sound: '/www/sound/whistle.mp3' });
  </code></pre>
  
  <p>I tried also to play the sound from the resource folder, however i dont know in what folder i am suppose to place the sound file and how to add it to the schedule. This is what i have done so far with it</p>
  
  <p>sound path is resource folder</p>
  
  <p>res/sound/whistle.mp3</p>
  
  <p>and this is the javascript code i used in the cordova app</p>
  
  <pre><code>window.plugin.notification.local.add({ sound: 'android.resource://' + package_name + '/raw/sound/whistle' });
  </code></pre>
  
  <p>For now i dont know what i am doing wrong or not doing.
  I will be glad if anyone can help me solve this since it is really eating my brain up. Thank you</p>