AgoraIO-Usecase / Video-Calling

Calling Interface + Connection Service on top of Agora RTM + RTC for Video Calling Example
MIT License
60 stars 43 forks source link

Android can't make a call when app is not in the foreground #15

Open kazimad opened 4 years ago

kazimad commented 4 years ago

Application works fantastic when both users take it on the foreground. But unfortunately when person who will receive the call moves from the app to the background, or even minimize it. It will not receive the call. Caller has infinity call process
Would you please help me with that

plutoless commented 4 years ago

you will need to implement push notification to receive msg when in background. or if you are using android you can use foreground services.

yifeiguorenyu commented 3 years ago

发送通知后,点一下通知 ,让app 回到 前台?

plutoless commented 3 years ago

@yifeiguorenyu 是的,然后处理接听逻辑,当然也可以用connecionservice

dasharath8998 commented 3 years ago

Which way is better to display incoming calls if the android app is killed, Connection service, or Should open an alert screen on push notification?

plutoless commented 3 years ago

@dasharath8998 i think you should show an alert screen first via push notification, and then you can open the app or show system call ui via connection service.