用于推送通知的Cordova插件,可监听我自己的Web服务 [英] Cordova plugin for push notification that listen to my own webservice

查看:264
本文介绍了用于推送通知的Cordova插件,可监听我自己的Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个 cordova 移动应用程序,该应用程序正在等待来自管理Web应用程序服务器的消息.

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

tcp将管理应用程序连接到我在 ratchet Web套接字服务器之上实现的websocket服务器上.

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

我实现了对棘轮Web服务的绑定,并使用websoket以javascript接收了消息.

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.

在我对此进行了搜索之后,我发现了 PushPlugin

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.

推荐答案

不,您不能.您可以使用自己的Web服务,但必须先将APNS和GCM交叉,然后通知才会发送到用户设备.

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.

用于iOS的APNS

APNS for IOS

适用于Android的GCM

GCM for android

这篇关于用于推送通知的Cordova插件,可监听我自己的Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆