Is there a way to allow the native Browser and Sailfish.WebView the use of Notifications?
Per default it seems to be forbidden, you can test it here:
https://www.kenherbert.dev/browser-notification-tester/
All permissions are granted in Browser:
In Webview:
2 Likes
attah
13 June 2025 16:48
2
It looks like they are intended to already be enabled:
pref("dom.max_child_script_run_time", 0);
// plugins
pref("plugin.disable", true);
pref("dom.ipc.plugins.enabled", false);
pref("plugins.click_to_play", true);
// The default value for nsIPluginTag.enabledState (STATE_CLICKTOPLAY = 1)
pref("plugin.default.state", 1);
pref("notification.feature.enabled", true);
pref("dom.webnotifications.enabled", true);
// prevent tooltips from showing up
pref("browser.chrome.toolbar_tips", false);
pref("dom.indexedDB.warningQuota", 5);
// prevent video elements from preloading too much data
pref("media.preload.default", 1); // default to preload none
pref("media.preload.auto", 2); // preload metadata if preload=auto
pref("media.cache_size", 32768); // 32MB media cache
(but i agree they don’t work)
AL13N
2 September 2025 14:29
3
any news on this? I too have html5 websites that are intended to use notifications, i don’t really want to do the hassle of unifiedpush (which, does not work with default browser either?) and trigger notifications via a server from the outside, if the browser has a perfectly fine notification system?
1 Like