ngx-scanner
ngx-scanner copied to clipboard
in safari it shows a white blank screen
I have tested this library in mobile safari using different versions of ios (14.6,14.2 and less) and it shows a white blank screen. I don't know how can i solve this problem. i have tested both in safari and chrome in iphone and both resulted the same.
Smartphone (please complete the following information):
- Device: [iPhone SE,iphone 12]
- OS: [e.g. iOS 14.6]
- Browser [chrome, safari]
Hello you have tested this lib on v3.2.0? I have similar issue on v3.0.0 but after update to v3.2.0 issue not occurred anymore.
Could you tell me something more about your issue? I want to check if it occurs on my app. Do you use autostart option?
On my part, for now, I could give you a hint to check if you set permissions to you devices => check the result of permissionResponse.
@ehsankh1370
I had a similar issue but it was not related to ngx-scanner. To detect the reason of the problem simply connect your device to Macbook and check the errors in console using Safari Web Inspector.
From my side unfortunately I don't have Mac... in my case (IMO ofc..because I don't have an access Mac pc :( ) the issue occurs because of async's. After update lib to 3.2.0 issue not occurred anymore. It seems like without async/await we call for permission (askForPermission method) but not wait for it and run scanner.
I ask about autostart because is very easy to reproduce when we use autostartOff path. Then this.updateVideoInputDevices(); don't have await.
Ofc this is just my conclusion only.