I am developing a VOIP app. VOIP push is sent from amazon SNS, using push kit and call kit we show caller screen. This caller screen can be presented even when app is in background or quit.
Unfortunately android does not have VOIP push. How it can be implemented in android? or is there any solution that would work in both platforms?
VoIP notifications are background messages that don't generate alerts or sounds. These notifications are used to wake up apps and pass across information about incoming calls. With VoIP, mobile apps let users send and receive calls on their devices, using the app interface rather than the default phone interface.
Navigate to Settings > Mobile Apps. Click the mobile app for which you'd like to send a push notification. For Device Token, enter the token you located above. For Message, enter a message to display in the push notification.
Android Push Notifications For Android, the notifications by default appear on the lock screen, and when the phone is unlocked, are visible as small icons on the notification bar at the top of the screen.
In iOS you can not keep 2 process in running from 1 app even not in foreground, background or terminated state.So pushkit technique introduced to notify user about incoming VOIP call in terminated state.
In Android you can keep 2 process running together, if you close ( terminate ) your app then still 1 another process can be live in background and terminated state.
You can implement websocket, and websocket has to be another service apart from your Android app. Websocket service will be keep running even in terminated state, once you receive some response on websocket you can invoke your main app about incoming call.
Like Skype, WhatsApp other app does not keep sending request and handle response to know user is online or offline. That works on websocket technique. Any single change on server, server will send information to websocket.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With