iOS Question How to use the Vibrate in B4I 2.0

Discussion in 'iOS Questions' started by winjiadh, Jul 8, 2015.

  1. winjiadh

    winjiadh Active Member Licensed User

    in the B4i 2.0, I used the vibrate like this
    1.In the Sub Process_Globals
    dim phone1 as phone
    dim btn as button
    2.In the Sub btn_Click
    phone1.Vibrate(50)

    when I run the app in the iphone5, I click the btn, the phone will not vibrate
    what's wrong with this methods
    who can told me, thanks
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Nothing has changed in v2.0 that should affect Phone.Vibrate. I've just tested and it works:
    Code:
    Sub Page1_Click
       
    Dim p As Phone
       p.Vibrate
    End Sub
    Maybe your phone is in a mode where vibration is not allowed.
     
  3. winjiadh

    winjiadh Active Member Licensed User

    frist thanks for you fast reply
    yes, I set the iphone not vibrate in setting-->voive-->no vibrate
    And Howto control the phone vibrate times?
    like this "phone1.Vibrate(50)"
     
    Last edited: Jul 8, 2015
  4. Erel

    Erel Administrator Staff Member Licensed User

    It is not possible in iOS.
     
  5. narek adonts

    narek adonts Well-Known Member Licensed User

    You should use a timer
     
Loading...