FAQ
Why don’t I see page views in my SPA?
Ensure your router uses History API. If it doesn’t, add a custom event trigger and dispatch window.dispatchEvent(new Event('routechange')) and a matching trigger { type: 'event', config: { name: 'routechange' } }.
Push doesn’t prompt users
Check HTTPS, VAPID key, Service Worker path/scope, and that permission is not already denied. Consider showing a soft prompt modal gated by filters before calling native prompt.
My modal never shows
Confirm the trigger fires, filters pass, group/limits do not suppress, and template file exists for the resolved language.
How do I override config at runtime?
Use Hood('config', key, value) before Hood('init', ...) or pass an overrides object as the 3rd arg to init.
How to set language for templates?
Call Hood('setuserlanguage', 'en'). Otherwise, SDK detects a supported base language.