-
Notifications
You must be signed in to change notification settings - Fork 1.1k
App crashes after showing permission request dialog #822
Comments
Bump. Can anyone help with this? We're trying to qualify our app as a Daydream app and this is blocking. Thanks! |
Update, workaround found: This problem seems to only happen when building with Target API Level 27. Selecting Target API Level to 24 or 25 fixes the issue. |
We're seeing this too (Unity 2017.3.0p4, GVR 1.120.0). Thanks for the workaround. If it helps, it looks like just before the crash, the permissions screen gets cancelled and called a second time when targeting API Level 27. |
We're having the same issue and the workaround does not work (unity 2017.3.1p4, GVR 1.130.1). Thanks ! |
Can you run |
This one ? Also during runtime the main error seems to be this one : |
Are you sure you're using GVR SDK for Unity 1.130.1? We fixed the leaked ServiceConnection issue in that release. I'm only able to reproduce it with 1.120, but not 1.130.1. |
Strange... I just downloaded it again to be sure, launched the PermissionsDemo scene on my S8 and crash again. It asks for permission, and after a few second without doing anything it crash. This time I got this error :
Here is the bugreport in case it can help. |
That's interesting. Do you have the Oculus VR SDK enabled as well as Daydream? |
No, only Daydream, but I have the Oculus program on my phone, maybe it's related ? I also have the OVR plugin in this project (that's why it's called com.oculus.SampleFramework) |
Any news on this issue? I'm getting something similar and I also have the oculus plugin in my project. Though I disable it before making a build for daydream. Attaching log below: |
The original issue still happens for me with Unity 2017.3 and GVR SDK 1.130.1. If I change the Target API to 24, then the app doesn't crash. However, there are still some bugs in the PermissionsFlowManager code - the results callback is executed in a separate thread, so you cannot call any Unity APIs, such as setting the text or color. I worked around this by setting a boolean to trigger the desired actions in the Update() method. Not ideal, but gets the job done for now. It would be nice to have this work out of the box and not have to set the target API. |
To those of you that are able to repro, can you try adding You might need to unpack the gvr-permissionsupport-release.aar, modify its AndroidManifest.xml in-place, then re-archive it, e.g., for TransitionVRActivity change
to
|
@jdduke solution worked for me. I tried it on an empty project, imported GoogleDaydreamPackage and just ran the Permission Scene. I'm on Unity 5.6.5f1. Tried it multiple times, no crash :). I had to change both manifest files as mentioned. Just changing the one inside the project didn't do much by itself. Attaching the gvr-permissionsupport-release.aar in a zip with the manifest modified for anyone who wants to try this out quickly. |
Another solution is not to use the Runtime Permissions, which is not supported by Unity as described in https://docs.unity3d.com/Manual/android-manifest.html, but to let the app request permissions on startup by adding the following line in the manifest: <meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="false" /> (You can follow the section Overriding the Android Manifest in the link to modify the manifest.) Unity sets the value to |
Is there an ETA for the next version that includes the fix mentioned a couple of posts earlier? Also with the Mirage Solo having been released ~a week ago: are you working on a way to handle permissions solely in VR anytime soon? The current permission flow is very immersion breaking and the need to actually remove your phone from the Daydream View only adds on top of that... :) |
This fix should be out in the next three weeks. The permissions flow works seamlessly on the Mirage Solo if you are using the latest GVR SDK for Unity. |
Any update about the next release ? |
Next release is in testing, expected release in two weeks. |
This is now fixed in the latest release. |
in Miraz solo app crash after permission dialog. I'm using unity 2018.1.0f2 and latest SDK |
Application always crashes after showing a permission request dialog by calling
GvrPermissionsRequester.RequestPermissions()
.Found using:
Steps to reproduce the issue:
Logcat recorded the following exception:
The text was updated successfully, but these errors were encountered: