Welcome! › Forums › Unity Plugins › In-App Web Browser › In-App browser can not detect full screen in which front camera is within screen › Reply To: In-App browser can not detect full screen in which front camera is within screen
November 15, 2020 at 1:49 pm
#11569
Piotr
Keymaster
For camera access you need to do three things:
1. Replace InAppBrowser.jar
from Plugins/Android
with this.
2. Add <uses-permission android:name="android.permission.CAMERA" />
to your AndroidManifest
3. Request runtime permissions:
void Start()
{
#if PLATFORM_ANDROID
if (!Permission.HasUserAuthorizedPermission(Permission.Camera))
{
Permission.RequestUserPermission(Permission.Camera);
}
#endif
}
- This reply was modified 4 years, 2 months ago by Piotr.