Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Notification Service
    • Overview
    • Getting started with mobile push notifications
    • Getting started with in-browser push notifications
    • Getting started with SMS
    • Overview
    • Mobile push notifications
    • In-browser push notifications
    • SMS
    • Quotas and limits
    • All tools
    • AWS CLI
    • AWS SDK for C++
    • AWS SDK for Go
    • AWS SDK for Java
    • AWS SDK for JavaScript
    • AWS SDK for Kotlin
    • AWS SDK for .NET
    • AWS SDK for PHP
    • AWS SDK for Python (boto3)
  • Pricing policy
  • Monitoring metrics
  • Logs Cloud Logging
  • Release notes
  1. Concepts
  2. In-browser push notifications

In-browser push notifications

Written by
Yandex Cloud
Updated at April 23, 2025

In-browser push notifications are messages popping up in your browser.

Push notifications may inform you about new content, special offers, and other key updates. Browser notifications work across different platforms: desktops, smartphones, and tablets with any OS. Users do not need to install additional software to receive notifications, a standard browser is enough.

Push notifications are also supported in progressive web apps (PWA). A PWA is a web application that runs in a browser but also has mobile app features. For example, PWAs can work offline but do not require users to download updates; updates are deployed on the server side.

To send a notification to the browser over a secure channel, the user must subscribe to notifications through the notification server used by their browser. Then you need to create an endpoint for this user in the CNS notification channel.

Note

The service is subject to limitations. For more information, see Yandex Cloud Notification Service quotas and limits.

To set up push notifications:

  1. In CNS, create the Push notifications in browser channel.

  2. From the user browser, call the JavaScript subscribe method using a Service Worker.

    When the method is called, the browser sends a request to its notification delivery server. For example, Google Chrome sends a request to Firebase Cloud Messaging (FCM), and Safari, to Apple Push Notification service (APNs). The response will return a PushSubscription object.

  3. Convert the object you got to JSON by calling the toJSON method.

  4. Use this JSON when creating the endpoint. Through this endpoint, you will send notifications to the user.

  5. To send a notification, create a message in CNS and specify the endpoint ID (ARN) as the recipient.

To send notifications to different users, create a database of endpoints for all users.

This is how push notifications are delivered:

  1. Your web app initiates a notification through an in-browser push notification channel.
  2. CNS receives the send command.
  3. CNS sends notifications to the servers specified in the endpoints.
  4. Notification servers (FCM, APNs) deliver notifications to user browsers.

Working with in-browser push notifications is similar to working with mobile ones.

See alsoSee also

  • Service overview
  • Getting started with push notifications
  • Getting started with the service via the AWS CLI
  • SMS

Was the article helpful?

Previous
Mobile push notifications
Next
SMS
© 2025 Direct Cursus Technology L.L.C.