WebView-CG / usage-and-challenges

Documenting usage scenarios for WebView and the challenges they create
https://webview-cg.github.io/usage-and-challenges/
Other
12 stars 4 forks source link

Gather Diagnostic Data #33

Open aluhrs13 opened 2 years ago

aluhrs13 commented 2 years ago

Use case name

Diagnostics

Submitter(s)

Andy Luhrs

Motivation

App developers need to understand the fundamentals (performance and reliability in this context) of their applications. Hybrid applications oftentimes add difficulty to this, as native platforms are tailored to give them insights on native fundamentals, but don't have visibility into the fundamentals of their web content. It's generally possible to use web standard APIs like Performance Timeline and Reporting API to get and understanding of web fundamentals then correlate those to other native data, but that could be lossy and/or difficult.

Stakeholders

App developers and end-users.

Analysis

WebView2 has a handful of useful APIs in this area:

Related W3C deliverables and/or work items

Performance Timeline and Reporting API are the most notable.

How is the issue solved in the Browser, and what’s more is needed?

When investigating issues locally, web developers have access to various developer tools and sites varying by browser. Data at-scale generally uses the JS APIs above.

aluhrs13 commented 2 years ago

I'm not super familiar with mobile APIs here and wanted to get this use-case written before a long vacation, @rayankans happy to take input on what Android has or I can look deeper in a couple weeks.

QingAn commented 2 years ago

As discussed in 2022-08-23 meeting, please add some details about the other platforms, like Android WebView, etc. @rayankans @aluhrs13

rayankans commented 1 year ago

Android WebView:

Custom Tabs: