Replies: 2 comments 6 replies
-
Sorry for the late reply to this discussion - I managed to build up quite the backlog of cases to reply to ;-) |
Beta Was this translation helpful? Give feedback.
-
Hi @pri-kise, I installed your extension and it worked fine for me on iOS 15 and Android 12 with one special caveat for Android: I had to do something else to grant camera permissions for the Android app. For iOS, every time I triggered the barcode action, it prompted me to allow the camera and when I chose "allow", it showed a camera feed. For Android, I could either go in to the Business Central permissions and manually allow the camera OR I could do something within the app that already triggers camera permissions, such as going to a customer card and taking a picture. After doing either of those actions, every time I triggered the barcode action I was able to see the camera feed on your barcode page. I don't currently know of a way to force Android to prompt for camera permissions when using javascript from control-addins, but it looks like using the Html5Qrcode api or using the browser's I hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Hi @JesperSchulz ,
Recently there was a smalltalk on twitter about adding a QR Code Scanner in the system application.
I experiemented a little bit with the following javascript library and get it to work on the webclient
https://github.com/mebjas/html5-qrcode
I thought about adding it as PR, but then I realized that the implentation via javascript isn't working in the Business Central App for Android or IOS.
I guess it's related that the app does populate the request for a camera device.
Since the library works very well in recoginizing it would be very easy to implement an AL wrapper to scan something.
Maybe you can redirect me to someone who has experience with requesting camera access through javascript in the BC Android/Ios App.
An alternative, but more complicated approach would be to create a Custom BC DLL, similar to Microsoft.Dynamics.Nav.Client.Capabilities.CameraProvider, that will use the ZXing.Net library and then try to recoginize a BarCode
https://github.com/micjahn/ZXing.Net
Maybe you can give some feedback, if there are any plans for this, that MS will provide something or show me which implentation could be possible?
Related Idea: https://experience.dynamics.com/ideas/idea/?ideaid=227a8464-c4e1-e811-b96f-0003ff689aeb
Beta Was this translation helpful? Give feedback.
All reactions