This is used when the user has reported a broken site from within the dashboard.
Note: We only send the properties seen here: "Generated Schema Definitions".BreakageReportRequest (like category
, description
)
native sides should combine these with any additional data they require.
Add the current domain to the 'allowlist'
window.PrivacyDashboard.toggleAllowlist(JSON.stringify({
"isProtected": true,
"eventOrigin": { "screen": "primaryScreen" }
}))
Remove the current domain from the 'allowlist'
window.PrivacyDashboard.toggleAllowlist(JSON.stringify({
"isProtected": false,
"eventOrigin": { "screen": "primaryScreen" }
}))
This describes the JavaScript Interface,
PrivacyDashboard
, that gets added to thewindow
object by Android.The Privacy Dashboard communicates with Android by calling methods on that global object.
For example, to show the breakage form, we'd call:
Each
method
documented below is intended