Reply To: In-App browser can not detect full screen in which front camera is within screen

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

#11569
PiotrPiotr
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 3 years, 5 months ago by PiotrPiotr.