Enable fullscreen incoming call
Warning
Only offline call invitation supports full screen feature.
You can change the incoming call dialog from notification to full screen by configuration, as shown below:
The configuration is as follows.
- set
showFullScreen
to true inZegoCallAndroidNotificationConfig
Untitled
ZegoUIKitPrebuiltCallInvitationService().init(
...
notificationConfig: ZegoCallInvitationNotificationConfig(
androidNotificationConfig: ZegoCallAndroidNotificationConfig(
showFullScreen: true,
),
),
...
);
1
- set
android:launchMode
tosingleInstance
inAndroidManifest.xml
- open
[project_root]/android/app/src/main/AndroidManifest.xml
- find
manifest/application/activity
- open
AndroidManifest.xml
<manifest ...>
...
<application ...>
<activity ...
android:launchMode="singleInstance"
...>
...
</activity>
...
</application>
</manifest>
1
Refer to the screenshot below: