Cordova plugin for push notification that listen to my own webservice

孤人 提交于 2020-01-05 08:39:08

问题


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:


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

GCM for android



来源:https://stackoverflow.com/questions/22302203/cordova-plugin-for-push-notification-that-listen-to-my-own-webservice

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!