[英]Incoming call notification - Android/iOS
I am developing a voip based phone call app specially for video conferencing type calls.我正在开发一个基于 voip 的电话应用程序,专门用于视频会议类型的通话。 Everything works via normal push notifications.
一切都通过正常的推送通知进行。
how do I show incoming call screen with sound eg如何显示有声音的来电屏幕,例如
I am trying to implement - https://developer.android.com/guide/topics/connectivity/telecom/selfManaged not sure if I am in the right direction.我正在尝试实施 - https://developer.android.com/guide/topics/connectivity/telecom/selfManaged不确定我是否在正确的方向。
Note: I don't want to interrupt/intercept normal phone calls.注意:我不想打断/拦截正常的电话。
I have managed to implement this using combination of push notification, broadcast receiver, alarm service, setting window flags on activity with "FullScreenIntent".我已经设法使用推送通知、广播接收器、警报服务的组合来实现这一点,并使用“FullScreenIntent”在活动上设置 window 标志。
Window.AddFlags(WindowManagerFlags.KeepScreenOn);
Window.AddFlags(WindowManagerFlags.KeepScreenOn); Window.AddFlags(WindowManagerFlags.DismissKeyguard);
Window.AddFlags(WindowManagerFlags.DismissKeyguard); Window.AddFlags(WindowManagerFlags.ShowWhenLocked);
Window.AddFlags(WindowManagerFlags.ShowWhenLocked); Window.AddFlags(WindowManagerFlags.TurnScreenOn);
Window.AddFlags(WindowManagerFlags.TurnScreenOn); Window.AddFlags(WindowManagerFlags.Fullscreen);
Window.AddFlags(WindowManagerFlags.Fullscreen);
this will open the app in fullscreen and can be routed to appropriate page for custom UI这将全屏打开应用程序,并可以路由到自定义 UI 的相应页面
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.