How to send a push notification using Erlang?

前端 未结 3 627
离开以前
离开以前 2021-01-30 11:25

I\'m trying to send a push notification to APNs using Erlang. This is the code I came up with so far:

-module(apnstest2).
-export([connect/0]).

connect() ->
         


        
3条回答
  •  时光说笑
    2021-01-30 12:08

    Try use a simple library epns(Erlang Push Notifications)

    This library can send push notification as APNS and FCM by Erlang side. How use epns(Erlang Push Notifications) library - you can read in README.md. This liblary can used as 3-rd party in project, or you can run it locally for see how this library works:

    $ git clone https://github.com/vkatsuba/epns.git
    $ cd epns
    $ make
    

    Retested on Erlang 20~21

提交回复
热议问题