Apple push notification without Apple Server

风流意气都作罢 提交于 2019-12-11 01:34:09

问题


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

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?!

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


回答1:


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).

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).




回答2:


Sorry no this is not possible. With Push notifications the Provider needs to send the notification to the APNS (Apple Push Notification Service) which will send it to the correct device.

This works like:

You are also not able to send files just notifications in the for of Text, sound etc. So no XML file via Push notifications sorry.

You could however do it were you notify the user through Push Notification that there is a file available and then download it when the app opens.

Check here for more on Push Notifications



来源:https://stackoverflow.com/questions/20567035/apple-push-notification-without-apple-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!