[
https://issues.apache.org/jira/browse/CB-11611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15400870#comment-15400870
]
jcesarmobile commented on CB-11611:
-----------------------------------
the API is navigator.vibrate(10), not vibrate(10)
And if I understand you correctly, your problem is that data event is not being
fired until you stop the recording, so I don“t think it's related with the
vibration plugin
How are you recording? which plugin are you using for the recording? can you
share your recording code too?
> iPhone doesn't vibrate in my code
> ---------------------------------
>
> Key: CB-11611
> URL: https://issues.apache.org/jira/browse/CB-11611
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Vibration
> Reporter: zhuisui
>
> I write some code to implement a feature.
> I inspect every element of array and if some satisfy condition I call
> {{vibrate}}.
> code like this
> {code:javascript}
> document.addEventListener('data', v, false);
> function v(arr){
> var i=0;
> while(i<arr.length){
> if(condition){
> vibrate(10);
> }
> i += arr.length / 10;
> }
> }
> {code}
> But it doesn't vibrate, until event {{data}} doesn't be dispatched.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]