Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 30338

Android: What is the best way of showing full page notification on incoming call without ConnectionService (React Native)

$
0
0

I'm unable to use ConnectionService because Twilio Video doesn't seem to support it. I've tried several alternatives but nothing seems to work very well so I'm interested in hearing what is the best suggestion. I have to handle the VOIP connection in the app so I want to show a custom UI on whether or not to pick up the incoming call and then direct to the app.

It seems like the doc's suggest https://developer.android.com/training/notify-user/time-sensitive IE

Intent fullScreenIntent = new Intent(this, CallActivity.class);PendingIntent fullScreenPendingIntent = PendingIntent.getActivity(this, 0,        fullScreenIntent, PendingIntent.FLAG_UPDATE_CURRENT);

but I have two issues here

1) It seems to mostly show HeadsUp notifications2) If CallActivity.class does display and I create a UI here with answer / reject in this, I'm not able to navigate to the app afterwards if the screen is locked. The activity will close and i'll be presented with the lock screen.

Any thoughts or suggestions?

Note: I've tried to do the same general flow with ConnectionService (but because I can't use this) when I try to answer the call navigate to the app but I have the same issue with a locked screen where I am displayed the lock screen right after I accept the call


Viewing all articles
Browse latest Browse all 30338

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>