Apple push notification without Apple Server

2019-07-19 17:38发布

问题:

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