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

In this article:

  • Mobile push notification channel
  • Mobile endpoints
  • Token lifetime
  • See also
  1. Concepts
  2. Mobile push notifications

Mobile push notifications

Written by
Yandex Cloud
Updated at April 23, 2025
  • Mobile push notification channel
  • Mobile endpoints
  • Token lifetime
  • See also

Push notifications are pop-up messages on your smartphone screen with information about Yandex Cloud Notification Service events, its services, promotions, news, and updates.

Push notifications are sent via mobile platform notification services:

  • Apple Push Notification service (APNs).
  • Firebase Cloud Messaging (FCM).
  • Huawei Mobile Services (HMS).
  • RuStore.

Note

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

Push notification delivery algorithm using FCM as an example:

  1. In CNS, you create a mobile push notification channel for a specific platform (FCM) and your app.
  2. FCM maintains a persistent network connection with all registered mobile devices to deliver push notifications to apps on those devices.
  3. Your app on a particular device registers in FCM and receives a unique token to send push notifications to that device.
  4. The token is stored in CNS as a parameter of the application's mobile endpoint.
  5. To send a notification, you publish a message in CNS and specify the endpoint ID (ARN) as the recipient.

Mobile push notification channel

Mobile push notification channel is a tool for message delivery via a notification service. Notification channels correspond to platforms where you can send push notifications.

Channel names are unique within the entire CNS. You cannot create a channel with a name that is already taken. Once you create a channel, you cannot change its name.

The minimum information you need to create a channel depends on the platform and may include:

  • Key or key ID, token, or certificate.
  • Developer, application, or project ID.

For the full list of details required for each notification channel, see Creating a push notification channel. You can get your authentication parameters in the developer console of the relevant mobile platform.

Once you create a notification channel, it gets a unique ID (ARN).

Mobile endpoints

Each channel has its own base of mobile endpoints to send notifications directly to the app on user devices.

A mobile endpoint contains information about a token to send push notifications to a specific device and notification channel ID (ARN).

Token lifetime

Push notification tokens have a limited lifetime that depends on a specific platform, user actions, and other factors.

CNS gets feedback from each platform when sending notifications and uses it to manage tokens. If a token is out of date, CNS will delete the endpoint.

Recommended algorithm for working with tokens using a mobile app:

  1. The app registers in the mobile notification service, e.g., APNs, and receives a token to send push notifications.
  2. The app provides the token to CNS, gets the endpoint ID (ARN), and stores it on the device.
  3. Each time the app is launched, it registers again in the mobile notification service, e.g., APNs, and checks to see if the token has changed.
  4. If the token has changed, the app provides the new token and the endpoint ID (ARN) to CNS. If such an endpoint ID (ARN) does not already exist for some reason, a new endpoint is created in CNS and stored in the app.

Tip

We do not recommend overwriting the token in the endpoint each time the app is launched. If the token has not changed, in some cases this may result in lost notifications.

See also

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

Was the article helpful?

Previous
Overview
Next
In-browser push notifications
© 2025 Direct Cursus Technology L.L.C.