Oculus Go app doesn't properly quit via Home button
This seems to be a problem with all apps I've tried to build. Basically you exit the app via the Home button and select Quit. When you try and restart the app, it fails. It will however start on the second attempt.
Note that I'm using Unity 2018.1.0f2 (64 bit) on Windows, and this also happened with an app built using a totally unmodified Oculus Sample Framework project!
It appears that the app instance is not being destroyed on selecting Quit - when trying to restart the app the first time, adb reports that 'ActivityManager: Process com.company.appname (pid 1234) has died'. Other apps installed via the store don't have this issue - the process dies at the point of selecting Quit. The only hint I currently have at what's going on is the following output from adb when attempting to quit:
Note that I'm using Unity 2018.1.0f2 (64 bit) on Windows, and this also happened with an app built using a totally unmodified Oculus Sample Framework project!
It appears that the app instance is not being destroyed on selecting Quit - when trying to restart the app the first time, adb reports that 'ActivityManager: Process com.company.appname (pid 1234) has died'. Other apps installed via the store don't have this issue - the process dies at the point of selecting Quit. The only hint I currently have at what's going on is the following output from adb when attempting to quit:
08-09 17:44:51.301 10079 10079 E ActivityThread: Activity com.unity3d.player.UnityPlayerActivity has leaked IntentReceiver com.oculus.vrapi.ScreenCaptureReceiver@220e616 that was originally registered here. Are you missing a call to unregisterReceiver()?
08-09 17:44:51.301 10079 10079 E ActivityThread: android.app.IntentReceiverLeaked: Activity com.unity3d.player.UnityPlayerActivity has leaked IntentReceiver com.oculus.vrapi.ScreenCaptureReceiver@220e616 that was originally registered here. Are you missing a call to unregisterReceiver()?
08-09 17:44:51.301 10079 10079 E ActivityThread: at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:1159)
08-09 17:44:51.301 10079 10079 E ActivityThread: at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:946)
08-09 17:44:51.301 10079 10079 E ActivityThread: at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1302)
08-09 17:44:51.301 10079 10079 E ActivityThread: at android.app.ContextImpl.registerReceiver(ContextImpl.java:1282)
08-09 17:44:51.301 10079 10079 E ActivityThread: at android.app.ContextImpl.registerReceiver(ContextImpl.java:1276)
08-09 17:44:51.301 10079 10079 E ActivityThread: at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:586)
08-09 17:44:51.301 10079 10079 E ActivityThread: at com.oculus.vrapi.ScreenCaptureReceiver.startReceiver(ScreenCaptureReceiver.java:185)
08-09 17:44:51.301 10079 10079 E ActivityThread: at com.oculus.vrapi.VrApi.onInitialize(VrApi.java:76)
08-09 17:44:51.301 10079 10079 E ActivityThread: at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
08-09 17:44:51.301 10079 10079 E ActivityThread: at com.unity3d.player.UnityPlayer.c(Unknown Source)
08-09 17:44:51.301 10079 10079 E ActivityThread: at com.unity3d.player.UnityPlayer$e$2.queueIdle(Unknown Source)
08-09 17:44:51.301 10079 10079 E ActivityThread: at android.os.MessageQueue.next(MessageQueue.java:392)
08-09 17:44:51.301 10079 10079 E ActivityThread: at android.os.Looper.loop(Looper.java:136)
08-09 17:44:51.301 10079 10079 E ActivityThread: at com.unity3d.player.UnityPlayer$e.run(Unknown Source)
08-09 17:44:51.304 10079 10079 E ActivityThread: Activity com.unity3d.player.UnityPlayerActivity has leaked IntentReceiver com.oculus.vrapi.SystemActivitiesReceiver@3afb184 that was originally registered here. Are you missing a call to unregisterReceiver()?
08-09 17:44:51.304 10079 10079 E ActivityThread: android.app.IntentReceiverLeaked: Activity com.unity3d.player.UnityPlayerActivity has leaked IntentReceiver com.oculus.vrapi.SystemActivitiesReceiver@3afb184 that was originally registered here. Are you missing a call to unregisterReceiver()?
08-09 17:44:51.304 10079 10079 E ActivityThread: at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:1159)
08-09 17:44:51.304 10079 10079 E ActivityThread: at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:946)
08-09 17:44:51.304 10079 10079 E ActivityThread: at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1302)
08-09 17:44:51.304 10079 10079 E ActivityThread: at android.app.ContextImpl.registerReceiver(ContextImpl.java:1282)
08-09 17:44:51.304 10079 10079 E ActivityThread: at android.app.ContextImpl.registerReceiver(ContextImpl.java:1276)
08-09 17:44:51.304 10079 10079 E ActivityThread: at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:586)
08-09 17:44:51.304 10079 10079 E ActivityThread: at com.oculus.vrapi.SystemActivitiesReceiver.startReceiver(SystemActivitiesReceiver.java:39)
08-09 17:44:51.304 10079 10079 E ActivityThread: at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
08-09 17:44:51.304 10079 10079 E ActivityThread: at com.unity3d.player.UnityPlayer.c(Unknown Source)
08-09 17:44:51.304 10079 10079 E ActivityThread: at com.unity3d.player.UnityPlayer$e$2.queueIdle(Unknown Source)
08-09 17:44:51.304 10079 10079 E ActivityThread: at android.os.MessageQueue.next(MessageQueue.java:392)
08-09 17:44:51.304 10079 10079 E ActivityThread: at android.os.Looper.loop(Looper.java:136)
08-09 17:44:51.304 10079 10079 E ActivityThread: at com.unity3d.player.UnityPlayer$e.run(Unknown Source)Is this a problem anyone else has seen? All help gratefully received!