Receive GCM push notification in node.js app

后端 未结 5 1396
慢半拍i
慢半拍i 2021-01-02 12:22

I\'m building a command-line application in node.js and would like to receive GCM push notifications (the command-line app will be interacting with the same set of services

5条回答
  •  醉话见心
    2021-01-02 12:45

    I don't think it possible (in a simple way)...

    Android/iOS has an OS behind with a service that communicates with GCM...

    If you are trying to run a CLI tool, you'll need to implement a service on top of the OS (Linux, Windows Mac) so it can receive notifications.

提交回复
热议问题