{"id":23174091,"url":"https://github.com/zebradevs/dw-webview","last_synced_at":"2026-02-16T10:39:37.829Z","repository":{"id":233636478,"uuid":"768050012","full_name":"ZebraDevs/DW-WEBVIEW","owner":"ZebraDevs","description":"Showing how to integrate Zebra Datawedge into a Webview","archived":false,"fork":false,"pushed_at":"2025-02-04T14:39:20.000Z","size":237,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T08:51:23.162Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZebraDevs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-06T11:29:27.000Z","updated_at":"2025-02-04T14:32:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"54b3bc35-8259-434f-b609-e79ea8953a7c","html_url":"https://github.com/ZebraDevs/DW-WEBVIEW","commit_stats":null,"previous_names":["zebradevs/dw-webview"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZebraDevs%2FDW-WEBVIEW","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZebraDevs%2FDW-WEBVIEW/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZebraDevs%2FDW-WEBVIEW/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZebraDevs%2FDW-WEBVIEW/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZebraDevs","download_url":"https://codeload.github.com/ZebraDevs/DW-WEBVIEW/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247268424,"owners_count":20911135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-18T05:19:07.621Z","updated_at":"2026-02-16T10:39:37.811Z","avatar_url":"https://github.com/ZebraDevs.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DATAWEGDE INTEGRATION INTO A WEBVIEW-BASED APP\n\n\n## v1.6+ INFORMATION\n\nSince Feb.2025 created profiles are no longer associated with this app =\u003e use the \"SWITCH PRO\" button to enable a profile when running the app\n\n\n\n## Release notes\n\n- Successfully tested on A8.1, A13, A14 Webview 117, 121 and 122\n- Two variants are now supported and each creates its dedicated DW profile\n    ![image](https://github.com/ZebraDevs/DW-WEBVIEW/assets/11386676/c343e200-1173-43ea-b23e-c0ba6686aae1)\n\n    ![image](https://github.com/ZebraDevs/DW-WEBVIEW/assets/11386676/192b0f54-0b5d-48c2-b71f-03b8fe0b68bd)\n  \n- Screenshots\n\n    ![image](https://github.com/NDZL/DW-WEBVIEW/assets/11386676/ada8ffc5-dfee-439c-895d-cccbfd781c90)\n\n\n\n## Code annotations about DW Intents and Profiles\n\n\n- The onCreate method\n  \n    https://github.com/ZebraDevs/DW-WEBVIEW/blob/2541876d11670e7616d7a9e584a0f8991ae4867a/app/src/main/java/com/zebra/dw_webview/HDLauncherActivity.java#L47 \n\n    defines at the same time\n    - a new DW profile\n\n    ![image](https://github.com/ZebraDevs/DW-WEBVIEW/assets/11386676/46f8b878-7c06-4e5b-b155-dd0f58378d9f)\n\n    - and the related Intent Receiver\n\n    ![image](https://github.com/ZebraDevs/DW-WEBVIEW/assets/11386676/c0cf74d4-f71f-41ef-9a33-00fd6b64d1f3)\n\n   for other purposes the received barcode data is then passed to a webview and displayed as HTML text.\n\n- DW profiles have the following features\n    - each profile is associated to the respective app variant\n\n        `bundleApp1.putString(\"PACKAGE_NAME\", appName)`\n\n        `val activityName = arrayOf(\"*\")`\n\n        `bundleApp1.putStringArray(\"ACTIVITY_LIST\", activityName)`\n\n    - the IntentOutput plugin is configured to send an intent named after the applicationID (app's package name)\n        `bParams.putString(\"intent_action\", appName)`\n\n    - a prefix (1# or 2#) is added to the reading output to differentiate the profile that generated it\n\n        `bundleAllPluginsConfig.add(dwSetPrefixPostfix(context))`\n\n    - the KeystrokeOutput plugin is switched off\n\n        `bundleAllPluginsConfig.add(dwSwitchOffKeystrokeOutput(context))`\n\n\n## HIDE OVERLAY WINDOWS\n\n![image](https://github.com/user-attachments/assets/277a3ca7-3b9e-4fd6-bdd0-973bbbd0ba3c)\n\nTo test this feature:\n\n- ensure the DW profile uses INTERNAL_CAMERA as barcode input source\n- keep switch 5 off\n- press 4 to activate a DW profile\n- press 1 or side scan buttons to trigger scanning. Note that the camera preview is visible\n- then set 5\n- again scan with 1 or side buttons - appreciate that the scanning completes, but no preview is available\n- long press 2 - the system camera preview is brought up. it is not affected by the setHideOverlayWindows API\n\n\n\n\n\n\n      \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebradevs%2Fdw-webview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzebradevs%2Fdw-webview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebradevs%2Fdw-webview/lists"}