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

-

[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)

  1. 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).

Comments (1)

  1. shubhamswaraj2021

    Aug 18, 2020 08:03

    good one <a href="https://www.lyricsauto.com">lyricsauto</a>

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.