<div dir="ltr">Hi<div><br></div><div>The sound event when the notification arrives doesn't seem to work (at least on iPhone; Android not tested yet).</div><div><br></div><div>And yes: the sound plugin is installed and working just fine.</div>
<div><br></div><div>Besides, I don't understand quite well the way you build the event. Example given by you for Android:</div><div><br></div><div><span class="" style="font-weight:bold;color:rgb(0,0,0);font-family:monospace,serif;font-size:11px;line-height:15.680000305175781px;white-space:pre">var</span><span style="color:rgb(0,0,0);font-family:monospace,serif;font-size:11px;line-height:15.680000305175781px;white-space:pre;background-color:rgb(240,240,240)"> my_media = </span><span class="" style="font-weight:bold;color:rgb(0,0,0);font-family:monospace,serif;font-size:11px;line-height:15.680000305175781px;white-space:pre">new</span><span style="color:rgb(0,0,0);font-family:monospace,serif;font-size:11px;line-height:15.680000305175781px;white-space:pre;background-color:rgb(240,240,240)"> Media(</span><span class="" style="color:rgb(136,0,0);font-family:monospace,serif;font-size:11px;line-height:15.680000305175781px;white-space:pre">"/android_asset/www/"</span><span style="color:rgb(0,0,0);font-family:monospace,serif;font-size:11px;line-height:15.680000305175781px;white-space:pre;background-color:rgb(240,240,240)"> + e.sound);</span><br>
</div><div><br></div><div>..What sound? I can have several sounds on a given folder...</div><div><br></div><div>I think a better - and more trivial - approach would be something like this (just an opinion...):<br><br><div>
if (e.sound) {</div><div><span class="" style="white-space:pre">                </span>if (device.platform == "Android") {</div><div><span class="" style="white-space:pre">                        </span>media = new Media("/android_asset/www/beep.wav");</div>
<div><span class="" style="white-space:pre">                        </span>} else if (device.platform == "iOS") {</div><div><span class="" style="white-space:pre">                        </span>media = new Media("beep.wav"); // root directory</div>
<div><span class="" style="white-space:pre">                        </span>} </div><div><span class="" style="white-space:pre">                </span>media.play(); </div><div> }</div></div><div><br></div><div><br></div><div>Thanks guys :-)</div>
</div>