How to detect with PhoneGap on iOS if call is made or not

北城余情 提交于 2019-12-06 04:52:50

All you can do is listen for the pause event.

document.addEventListener("pause", yourCallbackFunction, false);

This event will be fired when there is an incoming call or starting a call.

or you could look into the phone listener plugin and try to write it for iOS https://github.com/devgeeks/PhoneListener

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!