~/talk

Modern WebView best practices

Talkat Android Dev Summit 2018 · 2018-11-07..11-08· [web-platform, android]
links:none on file
links:none on file
links:none on file
slides:none on file

AndroidX ships a WebView compatibility library (v1.0) that backports many Nougat+ behaviors to Lollipop+ devices, covering ~90% of devices and exposing ~40 newer WebView APIs like WebViewClientCompat so shouldOverrideUrlLoading honors the user gesture check everywhere. It recommends using loadDataWithBaseURL (or Base64 via Base64.encodeToString) instead of loadData to avoid opaque origins, to set a real HTTPS/HTTP base URL tied to the original domain, and to avoid custom URL schemes; Safe Browsing support is included.

AI-written summary · about

  1. 0:00Introduction to WebViews
  2. 0:22Ecosystem and API history
  3. 2:14Introduction to AndroidX
  4. 2:53Secure navigation handling
  5. 4:47Implementing AndroidX
  6. 6:20Future of WebView APIs
  7. 7:00Loading in-app content
  8. 7:48Fixing old API issues
  9. 9:52Using base URLs securely
  10. 11:17Summary and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.