Welcome! › Forums › Unity Plugins › In-App Web Browser › In-App browser can not detect full screen in which front camera is within screen
Tagged: inapp
- This topic has 13 replies, 2 voices, and was last updated 4 years ago by Piotr.
-
AuthorPosts
-
October 6, 2020 at 9:57 am #2298habibParticipant
In-App browser can not detect full screen in which front camera is within screen. Android devices such as Samsung A71, in which camera is within screen. so In-App browser plugin can not just cover screen upto camera and a very small background area of mobile screen top side shows in app.
For screenshots details check email i sent from (ardeveloper2@gmail.com)
how to solve it?
October 6, 2020 at 11:44 am #2299PiotrKeymasterHow do you open browser? Are you using any
DisplayOptions
, especiallypadding
?October 6, 2020 at 11:58 am #2300habibParticipantI don’t use padding displayoption property.
October 7, 2020 at 9:56 am #2318PiotrKeymasterBut you disable title bar, correct?
I am wondering what would be correct solution here. If we simply move content of a browser to the top, title bar would be overlapping with camera lens.
Maybe if there is no title (custom or taken from URL) I could move it to top? Thoughts?October 7, 2020 at 10:56 am #2320habibParticipantI enabled Title bar but still In-App browser do not overlap the camera lens. please help
October 7, 2020 at 3:04 pm #2322PiotrKeymasterI don’t think you understood my question.
I am asking what would be expected result from you.
If there is title and we move content to the top then title will be overlapping with camera lens, correct?
So I am thinking what would be best solution here.October 8, 2020 at 6:08 am #2323habibParticipantyes that’s what exactly i want. would this be available in new version or we can do byself?
October 13, 2020 at 8:54 am #2344habibParticipantHello Piotr
My previous issues are still not resolved which i asked here and in forum too.
Now i encountered an another issue. i want the mobile camera access in In-app browser but do not prompt any webcam access and directly denied the webcam access.
Screenshot attached.thanks
October 13, 2020 at 11:17 am #2345PiotrKeymasterhabib, you are asking for breaking change when title will be hidden by camera lens – not sure what response are you expecting from me.
October 13, 2020 at 11:25 am #2346habibParticipantKindly check the emails i sent you with Screenshots. you will easy got the issues. (ardeveloper2@gmail.com)
ThanksOctober 13, 2020 at 11:40 am #2347PiotrKeymasterNot sure if you understand what I am trying to say.
You want move whole content of a dialog to the top edge.
It will potentially break hundreds of apps because if dialog shows website title it will be covered by part of the phone cover / camera lens.October 13, 2020 at 11:53 am #2348habibParticipantso what should be the solution for this(Camera lense issue)?
and how to give access to Mobile camera in In-App browser?
November 15, 2020 at 1:20 pm #11567PiotrKeymasterHi habib,
I cannot get Unity scene rendered in notch area (so both Unity scene and browser are rendered “below” it) – how did you accomplish it? Did you use some custom AndroidManifest? Is it some sort of option in Unity?November 15, 2020 at 1:49 pm #11569PiotrKeymasterFor camera access you need to do three things:
1. ReplaceInAppBrowser.jar
fromPlugins/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 ago by Piotr.
-
AuthorPosts
- You must be logged in to reply to this topic.