regulaforensics / Xamarin-DocumentReader

.NET MAUI (formerly Xamarin) Framework for reading and validation of identification documents
https://regulaforensics.com
11 stars 7 forks source link

Custom Settings / found device issue #5

Open Novotnde opened 3 years ago

Novotnde commented 3 years ago

Hello,

I am using regula nuggets in my solution. And I found that few custom settings behave differently on iPhone and iPad.

  1. Torch - I have set the torch to false as its shown in the manual for custom settings. On iPhone(sys 13.7) the icon is gone however on iPad (14.0.1) the icon is still present. iPad - Sometimes when the icon torch is tapped the scanning screen turns white around the scanning frame and then the app crashes.Please see the first image

RGLDocReader.Shared.Functionality.ShowTorchButton = true;

  1. Camera switch - iPad - icon appears correctly when set to true, tapping the icon makes the torch icon disappear but doesn't switch to the front camera. RGLDocReader.Shared.Functionality.ShowCameraSwitchButton = true;

3.Scanning page - iPad / scanning page is not on the whole display but directed only to the center. While on iPhone the page is completely spread. Please see second attached image

  1. when repeatedly tapping torch/switch camera icon the application crashes.

tested on Phone 7 sys 13.7 iPad 9.7 sys 14.0.1 iPad 10.2 sys 14.0.1

The same behavior occurs on application in apple store

Please, let me know if you need some more informations. Kind Regards IMG_0023 IMG_0021

vyakimchik commented 3 years ago

Hello,

Thanks for the detailed report. Regarding the arisen issues:

  1. We cannot reproduce it. The torch button is hidden, we checked it out. Are you able to reproduce this issue in our demo project which is available in this repository?
  2. Also cannot reproduce.
  3. It has the right preview dimensions. In the previous version, we scaled the preview to the full screen, but we thought that it's an incorrect way. Therefore, you see the black spaces near the preview.
  4. Cannot also reproduce it.

We'll investigate issues 1,2,4 and try to fix them.

Novotnde commented 3 years ago

Hello, I will try, but as I mentioned above I can reproduce the issue 4 and 2 on the application in App Store if I use iPad so I don't think that its only on my side..

Would there by any chance of adjusting the screen as it was in the previous version?

Novotnde commented 3 years ago

I just have checked the app here and the torch is still there, its gone once I press the button for switching the camera however if set to false its still there.

Novotnde commented 3 years ago

Hello, I have found the issue when it comes to switch camera to front. For some reason once I set RGLDocReader.Shared.Functionality.VideoSessionPreset = AVFoundation.AVCaptureSession.Preset1920x1080; the camera doesn't switch even on the application you have here

public void ShowScanner(bool IsReadRfid) { this.IsReadRfid = IsReadRfid; RGLDocReader.Shared.Functionality.VideoSessionPreset = AVFoundation.AVCaptureSession.Preset1920x1080; RGLDocReader.Shared.Functionality.ShowTorchButton = false; RGLDocReader.Shared.Functionality.ShowCameraSwitchButton = true; RGLDocReader.Shared.ShowScanner(CurrentPresenter, OnResultsObtained); }

vyakimchik commented 3 years ago

Hello,

We'll think of that.

Would there by any chance of adjusting the screen as it was in the previous version?

It was fixed in v5.3. Please check it out.

I just have checked the app here and the torch is still there, its gone once I press the button for switching the camera however if set to false its still there.

It means that the preset you set isn't supported by the camera you are about to switch.

Hello, I have found the issue when it comes to switch camera to front. For some reason once I set RGLDocReader.Shared.Functionality.VideoSessionPreset = AVFoundation.AVCaptureSession.Preset1920x1080; the camera doesn't switch even on the application you have here