IOS is the right way to send push notifications to multiple applications from the same server at the same time with the same message and payload

I have two separate applications in โ€œdevelopment,โ€ allowing them to call them App A and App B, which should receive the same message and payload from the same server as the push notification. Both have different application identifiers, certificate requests, preparation profiles, APN certificate development, and produce different tokens.

If I send a push notification for each application separately, each application will receive a notification. But if I try to send a push notification for each application at a time, only a notification will be received only in the first application. But I will not get errors for another application.

I tried to delay the push notification to 10 seconds between sending a push notification to the last application without success. Is there a way I need to handle connections to the apple server to enable push notifications?

Also note that there is another question that has the same problem but with no answers. Push Notification Limitations for Multiple Applications from the Same Server

I managed to get notifications that will be delivered to both applications successfully, closing the previous connection. This is not recommended by Apple, and they declare that I have to keep them open, as it is likely that many notifications will be added to each application per day.

Keep your APN connections open for multiple notifications; dont open and close connections several times. APN sees fast connect and disconnect as a denial of service attack

More here

+5
source share
1 answer

try using two instances of your server and do not open the connection when sending.

Connect each instance to a different port: 2195, 2196

0
source

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


All Articles