自定义推送通知到移动设备 [英] Custom push notification to mobile devices

查看:135
本文介绍了自定义推送通知到移动设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找有关自定义推送通知信息。
我想要实现的服务器和设备(Android和iOS)之间的隧道。当谈到时间服务器应该将信息发送到设备(APP)。

I am searching for information about custom push notification. I want to implement a tunnel between server and devices (Android and iOS). When it comes a time server should send information to device (App).

此外,因为我知道推的作品只是一种方式,服务器不知道它的消息已到达设备。也许我错了,在这个声明中,所以请大家指正。

Also as i know push works just in one way and server don't know if it's message has reached device. Maybe i am wrong at this statement, so please correct me.

我在我的情况下,我想,服务器可以知道这个信息。所以我的问题是如何创建的服务器和设备(Android版,iOS版)之间的这种行为。也许有一些图书馆,甚至协议名称,我应该看。

I my case i want that server could know this information. So my question would be how to create this behavior between server and device (Android, iOS). Maybe there are some libraries or even protocol name where i should look.

这时我正在看一本关于名为推送通知 MQTT

At this moment i am reading about push notification named MQTT

我想AP preciate的任何信息。

I would appreciate for any information.

感谢您。

推荐答案

什么你要找的是的谷歌云消息为Android和<一个href=\"http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html\"相对=nofollow>在iOS端的苹果推送通知服务。 (有也Azure在Windows Mobile的,但没有人似乎真的不在乎由于成本。

What you're looking for is Google Cloud Messaging for Android, and Apple Push Notification Service on the iOS side. (There's also Azure in Windows Mobile, but nobody really seems to care due to the cost.

是的,你在你的说法,正确的推送通知是单向的。然而,这是相对简单的,以提供一个确认路径回服务器,如果设备处于连接。为响应通知,你可以简单地让设备发布令牌服务器,确认收到推送通知的。

And yes, you're correct in your assertion that push notifications are one-way. However, it is relatively simple to provide an acknowledgement path back to the server, if the device is in connectivity. In response to the notification, you can simply have the device post a token to the server, confirming the receipt of the push notification.

这篇关于自定义推送通知到移动设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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