-
Notifications
You must be signed in to change notification settings - Fork 783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS 15.4 camera preview not showed #371
Comments
Weird, I have tested it on a device with iOS 15.4 and it works fine, also on 15.2. Try executing |
this is the func using the qrscanner-11 plugin:
|
Did calling Are you sure that html and body elements have Are you using the wkwebview plugin or anything like this? Update: I can see that WKWebView is now used by default in cordova-ios for some time already, so I guess that's not the problem |
is not the same problem seen on android devices and 2.6.0 plugin version. my problem is different, the code above works on android 8.x to 12 and from iOS 12 to 15.3.1. The problem is isolated only on iOS 15.4. (both plugins, this repo and your @v1934 repo) With 2.6.0 plugin version (this repo) i've also the Android 11-12 problem related to .hide() .show() inversion. |
i'll try but i expect the same result.
yes, the background is transparent.
yep |
We do have the same problem. Any news on how to fix this? |
Well, I'm actually just an user of this plugin just like you, I just fixed the previous android bug because it was affecting my app. |
I think i found a solution. You have to also set the background of the webviews scrollview to transparent too now. Will create a PR. |
can you give more details on your solution? i've already tried to make transparent and/or not display some elements in the dom stack with no success.
|
@fabioz23 I guess @phausero referes to the |
ok found and fixed. @v1934 i've done a PR to your repo for this fix |
@phausero if you agree and test goes fine we can mark as solved this issue. |
I have accepted the PR and pushed an update, you can check it out by adding |
@v1934 - the latest fork you have for qrscanner-11 (3.0.4) is breaking in Cordova 11 (cordova-android 11). Failing to compile the dependency: 1: Task failed with an exception.
I also checked out the |
I got this resolved fixing the gradle script. In gradle 7.0 and higher certain methods have been replaced. Note that the The aforementioned configurations should be replaced by Thus changing the plugin src/android/qrscanner.gradle file fixed the install for me. So far, the plugin has loaded and seems to work fine now on Cordova11 (cordova-android11). Haven't tested iOS yet. Thats next after I rebuild my project for Cordova 11 on the Mac.
|
Please try using the new version of my fork: [email protected] |
@fabioz23 @phausero - I have noticed that on different phones hiding the app layer to reveal the live camera screen beneath the app is not consistent. I have watched users on the same version of my app click the IE: This is telling me that some phones or some versions of iOS need another layer removed to reveal the live camera screen beneath it. However, when it has happened, I have not been able to successful capture what the device is or what additional layer needs to be hidden. I suspect the same is happening to you on certain devices. I do recall getting it all to work. Then on another test device saw this issue happening and had to hide a different layer...not just another layer, but a different layer altogether. My next version I plan on tracking it down and will try to determine if there any conditions I can add that will always hide the correct layer(s). |
Can anyone advise how I use Tried adding it as an import to replace
with
but this just fails as
|
Hi all,
i'm experiencing a problem, on iOS 15.4 the camera preview is not showing, black screen and green dot on status bar. So the camera is used and QR recognition works.
The same code on iOS 15.3.1 work fine (and also on Android devices).
I've tried also @v1934 version:
https://github.com/v1934/cordova-plugin-qrscanner-11
experiencing the same problem.
What are the changes on Safari Webkit that doesn't allow to make transparent the web content and show the live camera feed?
The text was updated successfully, but these errors were encountered: