Search Unity

Gear VR can use Handheld.Vibrate()?

Discussion in 'AR/VR (XR) Discussion' started by Onsterion, Jul 18, 2016.

  1. Onsterion

    Onsterion

    Joined:
    Feb 21, 2014
    Posts:
    215
    Hi all,

    I try to use Handheld.Vibrate(); in Gear VR App but don't work.

    Require a particular configuration or this feature is disable?

    Greetings.-
     
  2. lumeneo

    lumeneo

    Joined:
    Mar 3, 2014
    Posts:
    60
  3. varnava

    varnava

    Joined:
    Mar 14, 2013
    Posts:
    6
    Hi I have the same issue now
    Did you resolve this problem I have tried via Handheld.Vibrate() and via AndroidJavaObject. Do not work in both cases
    Thanks a lot for any reply
     
  4. Onsterion

    Onsterion

    Joined:
    Feb 21, 2014
    Posts:
    215
    No. I made a couple of quick tests but does not work.


    Sorry.
     
  5. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    Are you trying to vibrate that handset while it is in the headset?
     
  6. Onsterion

    Onsterion

    Joined:
    Feb 21, 2014
    Posts:
    215
    Yep and does nothing exept when the gear vr don't detect mi head example:

    When you put the HMD (Head-mounted display) correctly you can hear a sound and the display is turned on. In this case the Vibrate don't work.

    And then If you take out the HMD the vibration is started o_O.

    I guess it seems to be a security restriction of the Gear VR and cellphone.
     
  7. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    According to Oculus, this used to work but may have been disabled by Samsung. That being said, not sure that vibrating a person's head may be the best thing to do which may be why it's disabled?