CloudPOS SDK
  • CloudPOS SDK
    • EMV Develop Spec
    • Scanning Service Usage
    • API Specification
    • CloudPOS SDK AAR
    • Java API Samples
    • Permissions
    • Error code
    • MDB Communication Protocal
  • POS_Specs
  • FAQ
    • SDK Error Collection
      • Printer
      • PINPAD
      • Contactless Card
      • IC Card
      • MSR Card
    • Hardware/Repair
      • Recover a Tampered Terminal
      • Learning Tampered Events
      • Remotely Reactivate from Tamper
      • TF (Micro SD) Card Suggestion
      • Understand Tamper Reason
    • Printer
      • Verify Terminal Printer Status
      • Print Unsupported Character Sets
      • Use Terminal Bluetooth Printer
      • Print Images
      • Print QR Codes
      • Evaluate HTML Print Performance
      • Evaluate Print Performance
      • Print with TM T88IV
      • Replace HTML Print Font
      • Java API Printer Operations
      • Understanding Image Print Gaps
      • Print with JavaScript
      • Verify Printer Paper Status
    • USB/Serial Port
      • Install Terminal USB Drivers
      • Install UU Cable Driver
      • Reinstall Production Serial Drivers
      • Linux Serial Driver Installation
      • Serial Port Development
      • Add Linux Udev Rules
      • ReOpen Serial after Wake-up
      • Close Serial after Disconnect
      • Connect Accessory Mode
      • Detect UU Cable Connnected
      • Control Fan via Serial Port
      • List Connected USB Devices
      • Accessory Agent Service D22/Q3
    • Firmware
      • Update Firmware
      • Understand Firmware Naming
      • Compare Engineer/User Modes
      • Configure POS Home Settings
      • Configure POS System Settings
      • Prevent Accidental App Uninstallation
      • Troubleshoot "Agent Stopped" Error
      • Resolve Forgotten Lock Password
      • Utilize Q1 Buttons
      • Adapt Q1 4G
      • Customize Boot Logo/Animation
      • Set Wallpaper
      • Activate Startup Special Mode
      • Install Browsers
      • Understand Firmware External Access
      • Get Terminal Firmware Modes
      • Write Customer Serial Numbers
      • Enable Touch Screen Wake-Up
      • Set User System Properties
      • Update POS WebView
      • Disable File Explorer for TF/Pendrives
      • Manage Screen On/Off
    • Settings Menu
      • Perform Factory Data Reset
      • Understand Settings Menus
      • View Terminal Certificate List
      • Understand Merchant Self Test
      • Use Network Self-Test
      • Change System Language
      • Log in as Administrator
      • Change Administrator's Login Password
      • Update Terminal Time
      • Update Terminal Time Zone
      • Update Time Zone from IP
      • Enable Settings Menu Role Control
      • Update Role Passwords API
      • Disable Bluetooth/Wi Fi
      • Enable/Disable Auto Time Zone
      • Enable/Disable Automatic Time
      • Set Display Sleep
      • Grant Accessibility Permission Automatically
      • Disable Security Lock
      • Access Settings Sub Menu
      • Set Language API
    • Battery/Power
      • Understand Special Charging Indicator
      • Preserve Terminal Battery Life
      • Understand Q2 Low-voltage Shutdown
      • Understand Terminal Battery Performance
      • Understand Counter Mode
      • Turn Off Terminal API
    • SIM/Ethenet/WIFI
      • Disable POS Hotspot
      • Retrieve Terminal IMEI Number
      • Retrieve Terminal MEID Number
      • Understand Modem Bands
      • Troubleshoot Terminal SIM Signal
      • Resolve SIM Network Issues
      • Troubleshoot Network Search Error
      • Check eSIM Status
      • Ethernet Connectivity Usage
      • Set Communication Mode
      • Troubleshoot USSD Issues
      • Set Preferred Network Type API
      • Add APN API
      • Set Static Ethernet API
      • Enable/Disable Mobile Data API
      • Set Network Operators API
      • Activate eSIM
      • Enable/Disable Ethernet
    • Certificate
      • Apply App Certificates
      • Renew App Certificate
      • App Installation Controls
      • Install CA Certificates
      • Clear Terminal Certificates
      • Understand Certificate Visibility
    • Card
      • Contactless Card Distance
      • NFC Buffer Size Understanding
      • Use Contactless CPU Card
      • Use Felica Card
      • Use Mifare Card
      • Understand PSAM Card Exceptions
      • Optimal Tap Positioning Guide
    • FingerPrint
      • Fingerprint Module Usage Guide
      • Fingerprint DPI Specifications
      • Fingerprint Data Formats
    • Other Development
      • New Android Studio Versions
      • Setup ANDROID HOME
      • App Signing Process
      • Install POS Applications
      • Create First Android App
      • Retrieve Terminal Logs
      • Resolve APK Signature Conflict
      • Obtain Unfiltered Full Log
      • Obtain Terminal Current Location
      • Use Terminal Camera
      • Get Test APKs
      • Learn ADB Commands
      • Get Advanced Demos
      • Import Java SDK in C
      • Obtain Signal Strength
      • Get D3 Demos
      • Learn Kiosk Mode
      • Block Status Bar API
      • Display Full-Screen API
      • Display Full Screen Android API
      • Disable Home Key
      • Capture Power Button API
      • Retrieve Terminal Info
      • Save Files Locally
      • Set Default Launcher
      • Get Firmware Version
      • Get Firmware&EMV Version
      • Implement TLSv1.3
      • Auto-Run Post-Install
      • Understand Secure Connections
      • Use AnyDesk
      • Export Database to SD
      • Migrate App to Q2Premium
      • Auto-Run App Post-Boot
      • Integrate Java SDK in Flutter
      • Call AIDL Interface
      • Connect wirelessly
      • Get POS SN
      • UPT development-related
      • Q3 PDA Terminal Barcode Scanner
    • Key Injection
      • Inject Test Keys Remotely
      • Understand DUKPT
      • Understand Master&Session Keys
      • Use TMK KeyLoader POS
      • Understand Remote Key Injection
      • Resolve Serial Timeout
      • Import TMK Error: 74496
    • PINPAD
      • PINPAD Configuration Summary
      • Customize PINPAD GUI
    • TMS/Wizarview
      • TMS Overview
      • TMS User Guide
      • Register Terminal to WizarView
      • Accept TMS File Downloads
      • Handle User Locked Status
      • Apply WizarView Account
      • Batch Import Terminals
      • Unbind App Configuration
      • Remove App via TMS
      • Understand Agent Error Codes
      • Understand TMS IP Ports
      • Understand Update Scenarios
      • Understand App Binding Types
      • Apply RMA Maintenance Account
      • Update Firmware Remotely
      • Push APK to Specific Device
      • Set Agent Working Mode
      • Manage APK Prompt Installation
      • Network Control in Agent
      • Push Apps Using Tags
      • Deploy AID/CAPK via TMS
    • EMV
      • What's Tag91
      • What's CAPK
      • Set Issuer Scripts
      • Resolve Detection Priority Conflict
    • Advance SDK
      • Enable and Disable MTP
      • Disable notification badges
      • Scheduled Terminal Reboot Setup
      • Activate POS Hotspot
  • Wizarview Open API
Powered by GitBook
On this page
  • WebView Introduction
  • Creating and Displaying a WebView
  • Handling JavaScript Events
  • Upgrading System WebView
  • WebView Version Compatibility Across Different Models
  • Available WebView Versions
  1. FAQ
  2. Firmware

Update POS WebView

WebView Introduction

WebView is a crucial system component in Android that allows embedding and displaying HTML content within applications. It utilizes the Blink engine from Chrome, offering a seamless integration of web content in native apps.

Main Functions

  • Content Display: Loads and shows HTML, CSS, and JavaScript content.

  • Web Elements Support: Handles images, videos, audio, tables, forms, and more.

  • Interactivity: Offers APIs for JavaScript and Java interaction.

  • Caching: Improves speed and user experience by caching content and data.

Importance in Android Apps

  • Used extensively in e-commerce, social networking, and news apps.

  • Enhances user experience by providing a unified interface.

  • Simplifies updates and maintenance through server-side changes.

  • Allows reuse of existing web technology stacks.

Common Usage Scenarios

  • In-app Browsing: Offers in-app website content display.

  • Hybrid Apps: Combines native functionality with web content.

  • Single-Page Applications (SPA): Enables fast-loading, interactive SPAs within WebView.

  • Widgets: Displays dynamic content in home screen widgets.

Conclusion

WebView is a flexible and powerful tool in Android development, suitable for a variety of use cases and enhancing the capabilities of mobile applications.

Creating and Displaying a WebView

  1. WebView Object Creation:

    • Instantiate a new WebView object and set its layout parameters to fill the screen.

  2. Loading a URL:

    • Use the 'loadUrl()' method to load a specified URL into the WebView.

  3. Adding to Layout:

    • Add the WebView object to your application's layout.

// Create a new WebView object
WebView webView = new WebView(this);

// Set the layout parameters for the WebView
webView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
        ViewGroup.LayoutParams.MATCH_PARENT));

// Load the specified URL into the WebView
webView.loadUrl("https://www.example.com");

// Add the WebView to the layout
((ViewGroup) findViewById(R.id.activity_main)).addView(webView);

Handling JavaScript Events

  1. Setting a WebViewClient:

    • Assign a new WebViewClient instance to the WebView.

    • Override 'shouldOverrideUrlLoading()' to manage URL navigation events.

  2. Setting a WebChromeClient:

    • Assign a new WebChromeClient instance for additional interactive events, like handling JavaScript dialog boxes within the webpage.

webView.setWebViewClient(new WebViewClient() {
    @Override
    public boolean shouldOverrideUrlLoading(WebView view, String url) {
        // Handle URL navigation events here
        return super.shouldOverrideUrlLoading(view, url);
    }
});

webView.setWebChromeClient(new WebChromeClient());

Additional Considerations

  • Advanced Functionality: Depending on project needs, you might implement features to handle network errors, caching, and more complex web content interactions.

Upgrading System WebView

  1. System Signature Requirement:

    • Upgrading to a higher version of WebView requires the installation of a WebView version signed by the system.

  2. Customer Preferences:

    • Alternatively, customers can select from several signed versions offered by the provider for installation.

  3. Considerations and Risks

    • System Modification: Updating the system WebView involves altering the device's operating system, which carries risks and may void warranties.

    • Compatibility with Android OS: The version of the system WebView depends on the Android OS version on the POS. Older devices might not support the latest WebView versions.

  4. Alternative Approach: Third-Party WebView Libraries

    • Using Libraries like Crosswalk: These libraries come with their own WebView component, offering more control over the WebView version in your app.

    • Advantages: Bypasses system WebView limitations.

    • Trade-offs: May increase app size and introduce potential stability issues.

WebView Version Compatibility Across Different Models

Model
Default version

Q2 Android 6

74.0.3729.186

Q2 Android 7

74.0.3729.186

Q2 Android 12

95.0.4638.74

Q3 Android 7

74.0.3729.186

Available WebView Versions

Download URL
Version
Android requirement

106.0.5249.126

Android version >=6

119.0.6045.134

Android version >= 7

PreviousSet User System PropertiesNextDisable File Explorer for TF/Pendrives

Last updated 1 year ago

Customers can provide their preferred WebView versions for review and signing. These versions can be downloaded from .

the Google Developer website
WebView version 106 download
WebView version 119 download