Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VOIP push notifications in android

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?

like image 774
Deekshith Bellare Avatar asked Jun 22 '17 19:06

Deekshith Bellare


People also ask

What is VoIP push notification?

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.

How do I set up push notifications on Android?

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.

Does Android have push notifications?

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.


1 Answers

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.

like image 164
Hasya Avatar answered Oct 06 '22 12:10

Hasya