Search Issue Tracker
By Design
Votes
0
Found in
2018.3.0a9
2018.3.0b12
Issue ID
1103388
Regression
Yes
[Android] Player freezes after granting app permission
[Android] Player freezes after granting app permission
Steps to Repro:
1. Open attached project
2. Make a build and Run for Android
Actual Result: Player freezes after granting app Permission
Expected Result: App Permission is granted and the player resumes
Workaround: Restart the game
Occurs on:
2019.1.0a10, 2018.3.0b12, 2018.3.a9
Working fine on:
2018.2.0f2, 2017.3.4f1
Environment:
Windows 10, Mac 10.13
Note: Tested with Record_Audio, Camera permissions
Occurs on Device OS:
Marshmallow (Android 6.0) and above
Tested Devices:
Google Pixel 2 (Android 8.0), Samsung S8 (Android 7.0) and One Plus 3 (Android 8.0)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (2018.3.X):
Basically while using runtime permissions, it is not possible to use Microphone.devices or WebCamTexture.devices immediately. When you check these properties for the first time, empty arrays are returned, but at the same time user is being asked about permission to record sounds/use camera. So next time, if permission was granted, Microphone.devices or WebCamTexture.devices will return real arrays of recording/camera devices.
Also it is not very good idea to check for Microphone.GetPosition(null) synchronously using endless loop. That is the problem why application froze (in case of camera there was no freeze, but camera didn't work, that's why there was black screen).