IOS - "Imitation" of Push Notifications

I am developing an application that needs push notifications in my head. This is a simple application that does something like "order management." It works like:

  • user makes his order using his iPhone
  • this order is saved remotely using the web service
  • order appears to seller
  • As soon as the order is completed, a notification is sent to the user

So, I think that to create this application I need remote notifications. But I can’t create certificates because my type of membership in Apple is connected with my university (Politecnico di Milano), and I do not have rights to create identifiers, certificates, etc.

How can I get around my problem? The solution could be to use a separate thread to cycle through changes to my web service and then use local notification?

+5
source share
3 answers

There are no other ways to create push notifications. You need to create several certificates to communicate with Apple Push Notification Server.
You can simulate something like this in an application using a local notification, but it will be a kind of alarm at a certain time, useful if you want to do a demo. Another way, as you said, is to interrogate the server at a specific interval to check if you have any incomplete information.
If you don’t mind spending $ 99, you can open your account and, possibly (if this is for your thesis) ask them to return the Polytechnic (I did the same while I was working on my dissertation to cover some expenses).
Andrea (PolyMi graduates)

+1
source

The simulator cannot receive notifications, however you can try to use https://github.com/acoomans/SimulatorRemoteNotifications , which can simulate the fact that your application receives a notification. It basically creates a tunnel that you can use to send notifications in your application. You cannot make it work from your device or when the application is in the background.

+5
source

Its super late, but never mind. You can use Google Cloud Messaging. There is a desktop application along with a package that you can use to send notifications.

https://developers.google.com/cloud-messaging/ios/client

-2
source

Source: https://habr.com/ru/post/1200476/


All Articles