Open sumairasaeed opened 7 years ago
I have started the work on this and it is under construction. There are many places from where we are sending teh push notification to iOS. We need to convert all of them to use voip push notification.
I have worked on it and pushed the code. There is just one endpoint remaining which I need to use in order to get the device token. This work is remaining. In this part, the server would receive the device token from the iOS. this device token is used to send voip push notifictation.
I have completed the work on this and pushed the code to server.
Voip push is more efficient than our normal push notifications. It will make our app more efficient if we replace our normal push with Voip push. It will help in executing the logic in background even when app is in background without waiting for it to come in foreground. Also, we will have to do this for sending any received message on mobile to desktop app immediately in realtime even when app is not active. I have discussed this in detail with @sojharo . Here are some advantages of VoIP push:
Unlike standard push notifications, which the user must respond to before your app can perform an action, VoIP pushes go straight to your app for processing.
VoIP pushes are considered high-priority notifications and are delivered without delay.
VoIP pushes can include more data than what is provided with standard push notifications.
App is automatically relaunched if it’s not running when a VoIP push is received.
App is given runtime to process a push, even if your app is operating in the background.
For regular remote notifications, the maximum size is 4KB (4096 bytes). For (VoIP) notifications, the maximum size is 5KB (5120 bytes)
Server will have to replace normal push notifications with voip push notifications for: -1-1 chat -Group chat -Broadcast messages