In-page pre-ask for browser permissions that explains why before calling the real API, tells a closed prompt from a block, shows this browser's exact re-enable steps, and flips to on by itself once the user allows it.
npx shadcn@latest add @bollard/permission-pre-askpermission-pre-ask