Yes, granting permission in the browser is essential for a device to receive a push token and subsequently get web push notifications.
Here's why:
- Browser Prompt: When a website using web push notifications asks for permission, the browser displays a native prompt to the user (e.g., "[Website] wants to Show notifications").
- User Consent: The user must explicitly click "Allow" (or the equivalent) on this prompt.
- Token Generation: Only after the user grants permission can the browser generate a unique push token for that specific website and device combination.
- Device Registration: This push token is then used to register the device with the push notification service.
If the user denies permission or dismisses the prompt, no push token is generated, and the device cannot be registered to receive web push notifications from that site.
Comments
0 comments
Please sign in to leave a comment.