The browser's first-run flow. The page asks native for its configuration with init, then walks the user through the steps native chose. The page sends each settings change to native as it happens.
init"Onboarding Messages".InitRequest
Sent once when the page loads. The response picks the steps to show, overrides step content and sets the locale.
Types:
{
"stepDefinitions": {
"systemSettings": {
"rows": ["dock", "import", "default-browser"]
}
},
"steps": ["welcome", "getStarted", "makeDefaultSingle", "systemSettings", "customize", "addressBarMode", "searchOrChat"],
"locale": "en",
"env": "production",
"platform": {
"name": "macos"
}
}
The page shows only the steps listed in steps, in its own order, and ignores unknown entries. Without steps, it shows the default order (ORDER_V4), minus any steps listed in exclude. The page ignores exclude when steps is present. Deprecated: prefer steps.
Each entry in stepDefinitions is merged over the page's default definition for that step, which is how native picks the rows of a settings step.
Every field is optional. Without stepDefinitions the page uses its default step definitions, and without locale it stays on English unless the locale URL param overrides it.
requestDockOptIn"Onboarding Messages".RequestDockOptInRequest
Sent when the user wants to keep the browser in the dock or taskbar. Native responds once the operation is complete. The page ignores the response body.
requestImport"Onboarding Messages".RequestImportRequest
Sent when the user wants to import data. The page shows a loading state until native responds.
Types:
On macOS the page uses the response as the row's new value. Other platforms only need to respond, and the page marks the row as enabled.
{
"enabled": true
}
requestSetAsDefault"Onboarding Messages".RequestSetAsDefaultRequest
Sent when the user wants to make DuckDuckGo the default browser. The page shows a loading state until native responds, and ignores the response body.
onConfigUpdate"Onboarding Messages".OnConfigUpdateSubscription
Lets native push new step definitions or exclusions after init, for example to change the rows of the customize step.
{
"stepDefinitions": {
"customize": {
"rows": ["bookmarks", "session-restore", "home-shortcut"]
}
}
}
stepCompleted"Onboarding Messages".StepCompletedNotification
Sent when the user moves from one step to the next. It isn't sent after the last step.
{
"id": "welcome",
"next": "getStarted"
}
setBookmarksBar, setSessionRestore, setShowHomeButton, setAdBlocking, setDuckAiInAddressBarSent when the user turns a setting on or off. Each one sends a "Onboarding Messages".SystemValue. For setDuckAiInAddressBar, true means Search & Duck.ai and false means Search only.
{
"enabled": true
}
setOnboardingInstallOptions"Onboarding Messages".SetOnboardingInstallOptionsNotification
Sent on Windows with the install options the user picked on the getStarted step.
{
"sideloadExtensions": true,
"openAtStartup": false
}
requestChromeExtensionInstall"Onboarding Messages".RequestChromeExtensionInstallNotification
Sent when the user opts in to installing the Chrome search extension. The page moves on without waiting for the install.
telemetryEvent"Onboarding Messages".TelemetryEventNotification
Lets native fire a pixel for a UI interaction. See "Onboarding Messages".TelemetryEvent for every event.
{
"attributes": {
"name": "row_shown",
"value": "dock"
}
}
dismissToAddressBar"Onboarding Messages".DismissToAddressBarNotification
Sent when the user clicks Start Browsing at the end of onboarding.
dismissToSettings"Onboarding Messages".DismissToSettingsNotification
Sent when the user finishes onboarding and chooses to go to settings.
submitQuery"Onboarding Messages".SubmitQueryNotification
Sent instead of dismissToAddressBar when the user submits a search or a Duck.ai prompt on the searchOrChat step. Native ends onboarding and opens the query in the Welcome tab.
{
"mode": "duckAi",
"query": "Plan a weekend in Lisbon",
"source": "suggestion"
}
reportInitException"Onboarding Messages".ReportInitExceptionNotification
Sent when the page fails to load, or when an uncaught error or unhandled rejection reaches the window.
{
"message": "[uncaught] Cannot read properties of undefined"
}
reportPageException"Onboarding Messages".ReportPageExceptionNotification
Sent when the page has loaded but a step hits an error it can't recover from. id is the step that was showing.
{
"message": "Cannot read properties of undefined",
"id": "systemSettings"
}