cancel
Showing results for 
Search instead for 
Did you mean: 

Gear VR - Problem when the device is unused for 30 to 90 min

SimonAmpleman
Honored Guest
Hello,

We developed a Unity application for the Gear VR using the latest Oculus Mobile SDK.

It works well. However, we are facing a major problem right now. If the gear vr is unmounted and left on a table for a variable amount of time, when we take it back, there is only a black screen.

The problem seems to be that when it's undock, the ProximityReceiver in vrapi is shut down by the ActivityManager :

I/ActivityManager( 871): Killing 12024:com.oculus.home/u0a71 (adj 15): empty for 3070s

So, when the user mount the gear vr, the proximity sensor is not triggered and Unity doesn't resume the application.

Any clue on how to fix this? Our application really needs large delay between session when it's unused and the phone can't be removed from the headset each time to restart the application. Maybe there is a command in the VrApi to restart most of its broadcast receiver classes ? Or, can we add something in the Unity project to make sure none of these receivers won't be killed by the ActivityManager ?

Thank you.

Simon
2 REPLIES 2

SimonAmpleman
Honored Guest
After a few hours of testing and debugging... I found out that the Oculus Home application has the same problem.

1. Set the Note 4 inside the Gear VR
2. Oculus Home Activity will start
3. Wait until you're in the home menu
4. Put the Gear VR on a inductive charger
5. Wait 3 hours
6. If you remove the Gear VR from the inductive charger and put back the headset on your head : App will be black and you need to remove the Note 4 from the Gear VR, Android will come back to its Home Menu, and then you need to launch the app again and everything will restart correctly.

Simon

joshua_deep
Honored Guest
FYI:

When my app is downloading a large size video and I have the device unused for 2~3 minutes, it shows black screen.
It is because I had the listener using a timer.
After I stopped the listener onStop() and restart the listener at onStart(), I no longer saw the black screen.