cancel
Showing results for 
Search instead for 
Did you mean: 

Unity 5 - Gear VR Global Menu relaunches app on resume

JHeurtelou
Honored Guest
Hello,

I am currently facing a problem where after interfacing with OVRManager.PlatformUIGlobalMenu() or OVRManager.PlatformUIConfirmQuit(), my app seemingly crashes and re-launches upon dismissing either menus. 

I am receiving this result on both Unity 5.3.4p1 (tested with both Oculus utilities 1.5.0 and 1.6.0) and Unity 5.3.6p1 (with Oculus utilities 1.6.0). 

This issue still persists after building a blank project out, so this should not be a project specific problem. Any insight into this situation would be greatly appreciated.

I attached my logcat output. Aside from "Channel is unrecoverably broken and will be disposed!", there does not seem to be any additionally useful debug information (that i have noticed). The android manifest should be properly configured as specified by: https://developer.oculus.com/documentation/publish/latest/concepts/publish-mobile-manifest/
2 REPLIES 2

comerobi
Explorer
I have the same problem!

Where do you call your resume  and pause methods?

It looks like the app doesn't know where to restart from and simply goes back to the beginning.

Any helps?

comerobi
Explorer
Solved:

Move your <intent-filter> from "com.unity3d.player.UnityPlayerProxyActivity" to "com.unity3d.player.UnityPlayerNativeActivity" (cut and paste), like this:

<activity android:name="com.unity3d.player.UnityPlayerNativeActivity"
            ......
            ......
       <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.INFO" />
        </intent-filter>
         ......
         .......
</activity>

It took me days to figure it out...............

Roberto