On Tuesday, September 10, 2013 3:46:15 PM UTC+2, Alive wrote: > Jan Jongboom <[email protected]> 於 2013/9/10 下午3:38 寫道: > > > > > On Monday, September 9, 2013 11:34:22 PM UTC+2, Krzysztof Adamski wrote: > > >> > > >> The proof-of-concept application can be found on my github: > > >> > > >> http://github.com/kadamski/fxos_apps/tree/master/alarm1 > > > > > > Don't use window.open but > > https://developer.mozilla.org/en-US/docs/Web/API/Apps.getSelf and then > > launch yourself and ring. (launch() function on the response). > > > > Please don't do this. (Relaunch self) This is a bad pattern. > > See https://groups.google.com/forum/#!topic/mozilla.dev.webapi/GTIp4RZW2Vs > > If you still want this make sure you're in the callback function of system > message handler. > > > > > _______________________________________________ > > > dev-b2g mailing list > > > [email protected] > > > https://lists.mozilla.org/listinfo/dev-b2g > > > > -- > > Alive C. Kuo, Front-end Engineer, FirefoxOS, MoCo. Taiwan, Taipei office. > > [email protected]
Hmm, this is how we did it in SMS. Anyway, some code example on MDN would be nice. _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
