I'm new to iOS platform so please bear with me.
We are developing an App which will enable user to perform in-app video chat, for video chat we are considering OpenTalk sdk.
So here is the scenario, User A starts a video chat session with user B, a request is sent to server for generating sessionId and token (which is passed to client), the server returns the sessionId and token to user A, now the problem arises how we will pass the same sessionId and token to user B, so that the video chat can be started.
We thought of using APN service to send a notification to user B along with sessionId and token in payload, but that would not be a good user experience, because it will appear in notification window, also if the user is offline then the notification will show up once he is online (of which I don't see any use).
Any help would be highly appreciated.
iOS 7+ supports "Silent Push Notifications".
Source: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html