没有Apple Server的Apple推送通知 [英] Apple push notification without Apple Server

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

问题描述

是否有可能在不使用Apple服务器的情况下向iOS客户端发送推送通知?!

is there a possibility to send Push Notifications to iOS Clients without the use of Apple´s Server´s?!

另一方面可以推整个文件?!比如XML文件,或者你可以只推文本消息吗?!

And on the other Hand is it possible to push a whole file?! like a XML-File for example, or can you just push text messages?!

另一个问题,有没有办法将xml文件远程推送到iOS客户端?!

Another Question, is there any way to push an xml-file to an iOS Client remotely?!

推荐答案

你只需按下短信,声音(实际上告诉系统在推送时播放特定的声音,而不是实际的声音文件)。所有这些信息都以json格式(推送通知负载)传输,最大大小为256字节,如果不使用Apple推送通知系统(apns),则无法执行此操作。

You can just push text message, sound (actually tell the system to play specific sound on a push, not the actual sound file). All these info are transferred in json format (push notification payload) with maximum size 256 byte and NO there is no way to do it without using Apple Push Notification System (apns).

在第二个问题上,您可以使用http请求/响应将xml文件推送到您的应用程序(当您的应用程序正在运行时,而不是推送通知)。

On your second question you can push the xml file to your app using http request/response (when your app is running, not with push notification).

这篇关于没有Apple Server的Apple推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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