Cordova plugin for push notification that listen t

2019-08-07 15:49发布

I am building a cordova mobile application which waits a message from my admin web application server.

The admin application is conected by tcp to a websocket server I implemented on top of ratchet web socket server.

I implemented the binding to my ratchet web service and receiving the message in javascript by using websoket.

Now I want to notify the mobile if the server sends a message and the application is closed. I want to display this message in the notifications list of the mobile.

After I googled this I found PushPlugin and Pushwoosh and others. but they deppened on google and iphone services GCM and ANPS or a special web service that does not run on my server .

Is there a plugin that do so or is there a way to solve this.

1条回答
smile是对你的礼貌
2楼-- · 2019-08-07 16:00

No, you can't. You can use your own web service but you must cross over APNS and GCM before notification send to user device.

APNS for IOS

enter image description here

GCM for android

enter image description here

查看更多
登录 后发表回答