Page 1 of 2

Point mobile pm85 barcode scanner

Posted: Tue Jun 09, 2020 10:40 am
by CAPL_INFO
Hi,

I try to use scanner instead of camera(works well with cordova) on a pm85 but i don't know if need to load external plugins or not to work.

best regards

Re: Point mobile pm85 barcode scanner

Posted: Tue Jun 09, 2020 11:17 am
by Scott Klement
Hello,

I'm not familiar with a pm85 barcode scanner. Does it need a Cordova plugin?

If it needs a Cordova plugin, you should use the Cordova documentation to learn how to build a project, add plugins, build an app from them, etc. Profound Logic has documentation on how you can integrate Profound UI into a Cordova project, but it does not try to teach you how Cordova works -- so it is important to learn Cordova from the Cordova documentation.

Details of integrating Profound UI with Cordova can be found here:
https://docs.profoundlogic.com/display/ ... h+PhoneGap

Re: Point mobile pm85 barcode scanner

Posted: Wed Jun 10, 2020 11:20 am
by CAPL_INFO
Hello,
A Cordova plugin does exists : "cordova-plugin-pm80-scanner".
We installed it on our ibm i as indicated in the codova documentation (-> "npm i cordova-plugin-pm80-scanner").
We see it :
Image

But Profound UI mobile doesn't recognize it.

Sorry : we're not specialist of mobile's world !

Best regards.

Re: Point mobile pm85 barcode scanner

Posted: Wed Jun 10, 2020 2:05 pm
by Scott Klement
Hello,

You appear to have installed the plugin into /QOpenSys/pkgs/bin your IBM i rather than into your mobile app.

Have you created a mobile app with cordova and loaded it onto your device?

If you are using the device's browser or Profound's mobile app, you won't have the plugin. (These were not built in a the plugin.) If the plugin is a requirement, you need to build your own app with Cordova.

Re: Point mobile pm85 barcode scanner

Posted: Fri Jun 12, 2020 4:17 am
by CAPL_INFO
We had hoped that we could add the plugin in profound ui mobile !!

So, we builded one app with phonegap as it's show in "Deploying Profound UI Mobile With PhoneGap" 's documentation, but that app don't connect to our ibm i :
Image

Our app.js :
Image

Our configuration in Visual Designer :
Image

Do you have an idea ?
Thanks.

Re: Point mobile pm85 barcode scanner

Posted: Tue Jun 16, 2020 3:45 pm
by Scott Klement
Perhaps there's a firewall that blocks access to your IBM i, and you need to either open a port through the firewall or use VPN software or something like that?

If that's not it, perhaps the problem is in your html file or your config.xml file. Can you provide those?

Re: Point mobile pm85 barcode scanner

Posted: Wed Jun 17, 2020 3:20 am
by CAPL_INFO
Hi,

Our mobile use our private network wifi and connect well with the profound ui mobile app. So we think that it's our android app witch have a problem.

config.xml :
config.xml
(8.18 KiB) Downloaded 571 times
index.html :
index.html.txt
(1.53 KiB) Downloaded 313 times
spec.html :
spec.html.txt
(2.47 KiB) Downloaded 328 times
Thanks.

Re: Point mobile pm85 barcode scanner

Posted: Wed Jun 17, 2020 2:01 pm
by Scott Klement
I don't see any obvious problems.

Please try connecting Chrome to your app (via USB cable to the device) and use its debugging tools to see what is going wrong. There's a web site that tells you how to do that here:
https://ourcodeworld.com/articles/read/ ... gle-chrome

Hope that helps

Re: Point mobile pm85 barcode scanner

Posted: Wed Jun 17, 2020 2:07 pm
by Scott Klement

Re: Point mobile pm85 barcode scanner

Posted: Fri Jun 19, 2020 11:03 am
by CAPL_INFO
Hi,

We have do a log file with android studio :
debug.txt
(10.68 KiB) Downloaded 839 times

Code: Select all

see line 36 : SystemWebViewClient: URL blocked by whitelist: http://10.84.1.2:8080/profoundui/PUI0001200.pgm


in config.xml we have add for test : <allow-navigation href="http://10.84.1.2:8080/*" /> and <allow-intent href="*" />
config.xml
(8.27 KiB) Downloaded 326 times
we have same trouble

Thank you for your help