Point mobile pm85 barcode scanner

Use this board to ask questions or have discussions with other Rich Displays users.
CAPL_INFO
Profound User
Posts: 38
Joined: Wed Jul 19, 2017 4:54 am
First Name: Nadine
Last Name: Gauthier
Company Name: CAPL
Country: France
Contact:

Point mobile pm85 barcode scanner

Post 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
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Point mobile pm85 barcode scanner

Post 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
CAPL_INFO
Profound User
Posts: 38
Joined: Wed Jul 19, 2017 4:54 am
First Name: Nadine
Last Name: Gauthier
Company Name: CAPL
Country: France
Contact:

Re: Point mobile pm85 barcode scanner

Post 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.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Point mobile pm85 barcode scanner

Post 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.
CAPL_INFO
Profound User
Posts: 38
Joined: Wed Jul 19, 2017 4:54 am
First Name: Nadine
Last Name: Gauthier
Company Name: CAPL
Country: France
Contact:

Re: Point mobile pm85 barcode scanner

Post 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.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Point mobile pm85 barcode scanner

Post 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?
CAPL_INFO
Profound User
Posts: 38
Joined: Wed Jul 19, 2017 4:54 am
First Name: Nadine
Last Name: Gauthier
Company Name: CAPL
Country: France
Contact:

Re: Point mobile pm85 barcode scanner

Post 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 570 times
index.html :
index.html.txt
(1.53 KiB) Downloaded 313 times
spec.html :
spec.html.txt
(2.47 KiB) Downloaded 328 times
Thanks.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Point mobile pm85 barcode scanner

Post 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
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Point mobile pm85 barcode scanner

Post by Scott Klement »

CAPL_INFO
Profound User
Posts: 38
Joined: Wed Jul 19, 2017 4:54 am
First Name: Nadine
Last Name: Gauthier
Company Name: CAPL
Country: France
Contact:

Re: Point mobile pm85 barcode scanner

Post by CAPL_INFO »

Hi,

We have do a log file with android studio :
debug.txt
(10.68 KiB) Downloaded 831 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
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests