Jump to content

Wave Native SDK: DeviceResume and DeviceSuspend events not fired


krasi_quarkvr
 Share

Recommended Posts

We are having trouble determining whether the use has taken off the headset. Looks like WVR_EventType_DeviceSuspend and WVR_EventType_DeviceResume events are not fired. Please advice what's the correct way for the app to know the headset has been taken off, since we need to take additional actions.

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...

I don't know if you're using Unity, but if so, then maybe what you want is the OnApplicationFocus(bool focus) callback? I use it in my game and it works for detecting when user leaves the application (goes to Home, Library, Settings etc), but I haven't tested if it detects when user takes the headset off.

Link to comment
Share on other sites

Hi @krasi_quarkvr, @Neuromouse,

The DeviceSuspend and DeviceResume events no longer sent out since a WAVE architecture redesign longer than a year ago. May I know the reason you need these events? Our expectation is that apps basically shouldn't be needing them. You can receive Android broadcasts for screen on/off if that's what you need.

If there is a specific demand you must receive the two events, please share the use case and your expectation to us. If necessary we may study how to have them available again under current new architecture.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...