<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Are there no "out-of-the-box" sounds for Android?<div><br></div><div>I thought the iOS sounds were not driven by the indiviual app.</div><div><br></div><div><br><div><div>On Mar 19, 2014, at 1:40 PM, Sebastien Blanc &lt;<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="gmail_extra"><br class="Apple-interchange-newline"><br><br><div class="gmail_quote">On Wed, Mar 19, 2014 at 5:50 PM, Miguel Lemos<span class="Apple-converted-space">&nbsp;</span><span dir="ltr">&lt;<a href="mailto:miguel21op@gmail.com" target="_blank">miguel21op@gmail.com</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><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 style="line-height: 15.680000305175781px; font-size: 11px; white-space: pre-wrap; font-family: monospace, serif; font-weight: bold;">var</span><span style="line-height: 15.680000305175781px; font-size: 11px; background-color: rgb(240, 240, 240); white-space: pre-wrap; font-family: monospace, serif;"> my_media = </span><span style="line-height: 15.680000305175781px; font-size: 11px; white-space: pre-wrap; font-family: monospace, serif; font-weight: bold;">new</span><span style="line-height: 15.680000305175781px; font-size: 11px; background-color: rgb(240, 240, 240); white-space: pre-wrap; font-family: monospace, serif;"> Media(</span><span style="color: rgb(136, 0, 0); font-family: monospace, serif; font-size: 11px; line-height: 15.680000305175781px; white-space: pre-wrap;">"/android_asset/www/"</span><span style="line-height: 15.680000305175781px; font-size: 11px; background-color: rgb(240, 240, 240); white-space: pre-wrap; font-family: monospace, serif;"> + e.sound);</span><br></div><div><br></div><div>..What sound? I can have several sounds on a given folder...</div></div></blockquote><div>I haven't play too much with sound but e.sound is supposed to contain the filename of your sound file (like beep.wav / sirene.wav ...) &nbsp;</div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div dir="ltr"><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 style="white-space: pre-wrap;">                </span>if (device.platform == "Android") {</div><div><span style="white-space: pre-wrap;">                        </span>media = new Media("/android_asset/www/beep.wav");</div><div><span style="white-space: pre-wrap;">                        </span>} else if (device.platform == "iOS") {</div><div><span style="white-space: pre-wrap;">                        </span>media = new Media("beep.wav"); // root directory</div><div><span style="white-space: pre-wrap;">                        </span>}&nbsp;</div><div><span style="white-space: pre-wrap;">                </span>media.play(); &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span>}</div></div><div><br></div><div><br></div><div>Thanks guys :-)</div></div><br>_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;">aerogear-dev mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><a href="mailto:aerogear-dev@lists.jboss.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">aerogear-dev@lists.jboss.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></blockquote></div><br></div></body></html>