You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2017/07/18 22:17:01 UTC

[jira] [Closed] (CB-11611) iPhone doesn't vibrate in my code

     [ https://issues.apache.org/jira/browse/CB-11611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jcesarmobile closed CB-11611.
-----------------------------
    Resolution: Cannot Reproduce
      Assignee: jcesarmobile

I finally got an iPhone to test, but sadly I can't reproduce the issue, it vibrates when I speak with the code I provided.

> 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: cordova-plugin-vibration
>            Reporter: zhuisui
>            Assignee: jcesarmobile
>
> 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.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org