I've set up an app to send motion data from one device to another using websockets (Starscream library). Now I need to send push notifications when a critical event happens (when app is minimized), does it have anything to do with websockets or I just need to use something like Pusher?
Asked
Active
Viewed 3,579 times
-2
-
On iOS, once your app is no longer active, connections will be suspended after a short while, and so will your sockets. You'll have to resort to actual push notifications to handle this. – jcaron Jun 03 '17 at 22:25
1 Answers
1
As you said, I think you should use Pusher or any other external service (Pushwoosh, Onesignal, among others) to send push notifications to the users. You can't do this with websockets.
I recommend you to use OneSignal (it is free and some big companies like Uber or Zillow are using it)
EDIT:
I think you can't send a push notification from one device to the other one. One device (let's say Kid.app) should notify the server of an event, and then the server will send the push notification to the other (Parent.app).
Check this link, it will be useful for you.

Matias Jurfest
- 1,378
- 16
- 25
-
What if my task is to send notification from one app to a different one (like Kid.app and Parent.app)? – Artem Misesin Jun 04 '17 at 07:57