Javascript SDK and Enterprise browser

Hi.

I am trying to build an application to scan a label and then store the result to a data base. I also need to do some calls to our api to load some info before the scan. However i am not able to get this to work. What ecma script version does the Enterprise browser support? I tried using Async Await pattern but it don’t seam to work. Is there any debugger available in the Enterprise browser?

Happy for any feedback.

Thanks Mats Olsson

Hello @Mats_Olsson,

Our Enterprise Browser utilizes the integrated WebView application of Android.
So our JavaScript ECMAScript version is based on the version of the WebView implementation present on the device.
On devices running Android 5 or below, this was tied to firmware, and you would be locked to whatever was supported at the time of release.
AOSP devices, like our Joya Touch A6, are designed without Google Mobile Services (GMS).
As such, AOSP devices do not update Google apps like WebView.
So again, you would be locked to whatever came in firmware at the time of release.
However the majority of our devices do not fall into these two categories.
Our devices, that are GMS and are also running newer software, automatically update GMS apps like WebView.
In those cases, you would have the latest WebView and whatever ECMAScript level that supports.

In regard to debugging, we recently released a new version of our Enterprise Browser, version 1.2.1.
This new version supports passing browser console messages to Android Logcat.
You can find info about enabling this setting here:
https://datalogic.github.io/browser/operation/#security-settings

Drew Hugentobler
L3 Mobile Computer Specialist Support Engineer

Hi Drew.

Thanks for the fast reply. I will need to update the firmware as I can see from the table of minimum required version supported.

Another stupid question, how do I know if my device has GMS?

Regards Mats

Hello @Mats_Olsson

Questions are never stupid! :slight_smile:

Google Mobile Services (GMS) is a suite of Google applications and APIs that help support functionality across devices, and include the management of the Google Account system and the most common Google apps, like Goole Play, Chrome, Gmail, Maps, YouTube and so on.
If your device does not include GMS (AOSP devices), those apps will be not available and for example also the Web Browser will be the Android AOSP stock browser instead of Chrome.

Otherwise on your device you can:

  • Open the Settings app Settings .
  • Tap Apps & notifications > See all apps.
  • Scroll down and look for Google Play Services .

|

||

Regards
Simone Callegari
Datalogic Mobile Products Specialist - L3 SW Engineer

@Mats_Olsson,

You can also check for an update to WebView without logging into a Google account.
In the Google Play Store click the three dots top right, the kebab icon.
Then select Update, then either update all or scroll down to “Android System WebView” and update it individually.
If you do not have the Google Play Store, that would be a sure sign your are on an AOSP device.

Drew Hugentobler
L3 Mobile Computer Specialist Support Engineer