내 프로젝트에 흔들기 제스처 플러그인을 추가했습니다. mycode 잘못흔들기 이벤트가 phonegap에서 작동하지 않는 이유는 무엇입니까?
<button onclick="myFunc()" id="round">Gesture Call</buttom>
<script>
function myFunction()
{
window.open("emcall.html");
navigator.vibrate([2000,2000,2000,2000,2000,2000,2000,2000,2000,2000,2000,2000,2000]);
navigator.notification.beep(10);
}
function myFunc()
{
alert('shake working');
function onShake()
{
alert("shake success");
window.open("emcall.html");
}
function onError()
{
alert("errorq");
}
shake.startWatch(onShake,30,onError);
}
</script>
어떤 일이 올 OVER하는 데 도움이 :
이 내 코드입니다.
흔들어서 플러그인을 다운로드 했습니까? – wot
@ e4en 예 cli를 통해 다운로드 –
어떤 시스템이 작동하지 않습니까? 당신은 다른 사람을 시도 했습니까? – ste2425