简体   繁体   English

将推送通知从Android发送到iOS,反之亦然?

[英]Send push-notification from Android to iOS and vice versa?

I've just learned that its going to be pretty tough for me to realize an app that can send a push notification to another device, BUT: is it even worse to send it from Android to iOS respectively iOS to Android ? 我刚刚了解到,它的将是非常艰难的,我认识到一个应用程序,可以发送推送通知到其他设备,但:是事情变得更糟,分别从Android的发送到iOS 的iOSAndroid? I know it's possible because WhatsApp does it, but okay, WhatsApp... The way I need it is, on Phone A (Android) a user clicks on a button "Send 'ring'" to user B (iOS) . 我知道这是有可能的,因为WhatsApp可以这样做,但是,好的,WhatsApp ...我需要的方式是,在电话A (Android) ,用户单击“向用户B (iOS)发送'ring'”按钮。 When A clicks that Button, an AlertDialog (UIAlertView) shall appear on user B's screen. 当A单击该按钮时, AlertDialog (UIAlertView)将出现在用户B的屏幕上。 That's just to describe what I want to do, it obviously won't only send a 'ring'. 那只是为了描述我想做的事情,它显然不仅会发送“铃声”。

Any suggestions or good tutorials? 有什么建议或好的教程吗?

To do this, you need to implements the server-side logic, but everithing it's much simple if you use some services like Parse 为此,您需要实现服务器端逻辑,但是如果您使用诸如Parse之类的某些服务,这将非常简单

Here the docs related to iOS and Android . 这里的文档与iOSAndroid有关

They have their SDK, there is a pretty good documentation, you can setup everything very quickly. 他们有自己的SDK,有一个很好的文档,您可以快速设置所有内容。 We are using Parse a lot recently and (specially for notifications) it's very helpful. 我们最近使用了很多Parse,并且(特别用于通知)它非常有帮助。

There are others services like this (most of them based on node.js): 还有其他类似的服务(其中大多数基于node.js):

Deployd Open Source Sockethub Open Source 部署的开源Sockethub开源

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

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