A simple error page template for browser loading failures. Unlike other special pages, this page does not use messaging—native interacts via string interpolation and a global callback.
Native performs string replacement on the HTML before loading:
| Variable | Description |
|---|---|
$HEADER$ |
Error title text |
$ERROR_DESCRIPTION$ |
Error description text |
$THEME_VARIANT$ |
Theme variant name (falls back to default if not replaced) |
/* $ERROR_PAGE_LINK_CONFIGURATION$ */ |
Optional inert marker that native can replace with action-link configuration |
Native can update the theme by calling:
window.onChangeTheme({ themeVariant: 'coolGray' });
Payload:
{
"themeVariant": "violet"
}
Available theme variants: default, coolGray, slateBlue, green, violet, rose, orange, desert
The action link is hidden by default. Provide non-empty text and a click function to show it:
window.configureErrorPageLink({
text: 'Send Feedback',
onClick: function() {
// Handle the action in native.
}
});
Missing or invalid configuration hides the link and clears its text and click function. Calling window.configureErrorPageLink again replaces the previous configuration.