There was a task to implement Push-notifications for the application, but I did not come across them before. Found a bunch of articles, but they all involve the use of Google- account. Is it possible to do without him?

The message sending scheme is as follows (correct if I am wrong):

  1. The device is registered with Google.
  2. The client server sends notifications to Google.
  3. Google forwards the message to the device.

What does the server need to send messages to Google ? Certificate maybe?

How to bypass the Google service, so that the server would send notifications directly to the device?

    1 answer 1

    • Without Google you can, but it's not worth it. If you want to waste your time, and personally be disappointed in all alternative solutions, you can find this: android push notification without google . Least of all, I was disappointed in this .
    • Google account is needed. Without it - it is impossible (if done through Google). As far as I know, Google GCM does not imply the purchase of a developer account. That is, if you are not going to publish in the Play Store, then you can not buy it, Push notifications will be available anyway, because they work through another service.

    And it works like this:

    1. When you first install the application on your device, Google gives it a unique identifier for Push Notifications .
    2. You keep this identifier on your server.
    3. When you need to send a Push Notification to a device, you tell Google what data you need to send to which identifier, and it sends.
    • Now I tried to collect such a scheme. On the Google website, he configured the API key and Sender_ID. I understand this data is needed for the server that will send notifications? And a token is like registering a specific device? - FredGan
    • @FredGan, API key in the application must be entered. Open any guide, everything is written there. - Vladyslav Matviienko