Miniwall Docs
Templates & screen types

Permission prompt templates

Explain why you need a permission before the browser asks for it.

Show the benefit first. The main button runs your code, and your code then makes the browser request. Both templates also offer a way forward without the permission.

TemplateIntended forAction IDs
Notification PromptShows the reminder people will get, so more say yesenable_notifications, plus a "not now" close button
Location PromptExplains why location helps and offers an alternativeenable_location, enter_city
onAction: async ({ actionId }) => {
  if (actionId === 'enable_notifications') await Notification.requestPermission();
}

On this page