RonnyWeiss / APEX-QR-Code-Scanner

This Region Plug-in is used to scan QR Codes. If any string has been detected an APEX Item can be set, Dynamic Action can be fired or JavaScript can be executed. Login for Demo is: user-demo / 123456@
MIT License
27 stars 11 forks source link

Code scanner region does not show in iOS #15

Closed mathiasmaciel97 closed 1 year ago

mathiasmaciel97 commented 2 years ago

I set region as correspond but with Inline Dialog as template on Modal Dialog page. It asks for camera permission but when I allow it nothing happens. I define sub region to advertise user that it should allow browser to access device camera.

EFCCD178-B783-4E29-BBF0-6A45F39126B9

RonnyWeiss commented 1 year ago

Hey there, Thank you for your ticket. Could you please provide english Screenshots, I cannot work with these ones! Does it work when you use the plug-in in a normal page? When you set in custome attributes of the qr-code region the following: style="height:400px;" does this work then in modal dialogs?

RonnyWeiss commented 1 year ago

I have no apple device , but I tested the plug-in on a normal page and on a modal dialog with my sample app on apex.oracle.com in a BrowserStack iOS Real Device. So maybe the problem is in your app. could you please provide me a sample app on apex.oracle.com. So I can reproduce the issue?

mathiasmaciel97 commented 1 year ago

It works fine in Normal Page Mode. As I mentioned, it is not strictly related to functionality but behavior of camera preview that you can not see. There was not changes by setting that attribute. Current scenario: Inline Dialog template region for QR scanner in Modal Page Mode. I created a new app with similar settings on https://apex.oracle.com/. Feel free to login and test it. Here are your credentials:

RonnyWeiss commented 1 year ago

Hi there, sorry for late replay but what you are doing cannot work on ios. Camera can only be initialized when visible on iOS so this cannot work! You need to open the Scanner in a visible region on page load not in a hidden inline dialog!

RonnyWeiss commented 1 year ago

Yes that's only for iOS devices. I think Android is not so restricted. But it makes sense to me what Apple is doing for privacy reasons