简体   繁体   English

通用推送通知发送

[英]Universal push notification sending

I've got a server written in Scala/Java. 我有一个用Scala / Java编写的服务器。 I want to make an app in PhoneGap/Cordova which uses push notifications. 我想在PhoneGap / Cordova中制作一个使用推送通知的应用程序。
I would prefer to have one codebase for both Android and iOS. 我希望为Android和iOS提供一个代码库。 Is there a way to do universal push notifications for both Android and iOS. 有没有一种方法可以针对Android和iOS进行通用推送通知。
Is using Parse Push REST API for that purpose a good decision, cosidering that I've already got my own server? 为此目的使用Parse Push REST API是一个好的决定,同时考虑到我已经拥有自己的服务器了吗?

If it sounds opinion based, excuse me. 如果听起来基于意见,请原谅。 I'm new in this topic, and just want to decrease the redundancy as much as possible. 我是这个主题的新手,只想尽可能减少冗余。

Not sure about Parse, but clientside if you are using Cordova then the PhoneGap Push Plugin should be what you are looking for, it's available for iOS, Android, Windows and others and let's you handle the Push Notifications in Javascript. 不确定Parse,但如果您使用的是Cordova,则在客户端,那么PhoneGap Push插件应该是您所需要的,它适用于iOS,Android,Windows和其他操作系统,让您处理Java中的Push Notifications。

I don't know how you could solve this platform independent on the server side, though. 不过,我不知道如何才能独立于服务器端解决此平台。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM