Repository navigation
Releases
Releases · Techoship/android-webview-bridge
0.1.0
First release.
webview-bridge
window.print()opens Android's print dialog (printers and Save as PDF).blob:anddata:downloads are saved to Downloads under their real names, including blob URLs revoked straight after the click.<a download>andhttp(s)downloads go through DownloadManager with the page's cookies.- Only origins you allow get the bridge (WebViewCompat.addWebMessageListener, no addJavascriptInterface).
- Large files stream in 512 KB chunks; sizes are capped and file names sanitised.
webview-bridge-billing
- Google Play Billing 9 as
window.AndroidBilling: products, one-time purchases, subscriptions with offers, pending purchases, acknowledge, consume, purchase updates.
Install
Add maven("https://jitpack.io") to your repositories, then:
implementation("com.github.Techoship.android-webview-bridge:webview-bridge:0.1.0")
implementation("com.github.Techoship.android-webview-bridge:webview-bridge-billing:0.1.0") // optionalTypeScript types for the page side are in js/webview-bridge.d.ts.