开发者

Mobile Webapps Alerting Users

开发者 https://www.devze.com 2023-03-04 05:59 出处:网络
Is there anyway to have an audible alert on an android/iphone webapp? Would like to alert the 开发者_开发问答user when an event occurs.On android, you can execute java code from javascript, but you ne

Is there anyway to have an audible alert on an android/iphone webapp? Would like to alert the 开发者_开发问答user when an event occurs.


On android, you can execute java code from javascript, but you need to run your webapp in a WebView.

If your webapp runs in a bare browser, you could also check for the html5 audio api, might do the trick.

0

精彩评论

暂无评论...
验证码 换一张
取 消