I am developing an Android application using Unity3D for the Samsung Gear VR, with the Samsung Galaxy S7.
In my app, I use the bluetooth to create a local network between two devices. When the system popup asking permissions to enable bluetooth discoverability is supposed to appear in my app, the whole app freeze, the popup is not shown and I have to reboot the phone to use it again.
Is there a solution to maybe ask for that permission before my app is launch? For example, another request, regarding the access to local file system is asked before the splash screen of my app, but I don't know why and how this permission is asked at this time.
Thanks in advance,