logoUIKit
On this page

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.

  1. set showFullScreen to true in ZegoCallAndroidNotificationConfig
Untitled
ZegoUIKitPrebuiltCallInvitationService().init(
    ...
    notificationConfig: ZegoCallInvitationNotificationConfig(
      androidNotificationConfig: ZegoCallAndroidNotificationConfig(
        showFullScreen: true,
      ),
    ),
    ...
  );
1
Copied!
  1. set android:launchMode to singleInstance in AndroidManifest.xml
    • open [project_root]/android/app/src/main/AndroidManifest.xml
    • find manifest/application/activity
AndroidManifest.xml
<manifest ...>
   ...
   <application ...>
        <activity ...
            android:launchMode="singleInstance"
            ...>
            ...
        </activity>
        ...
    </application>
</manifest>
1
Copied!

Refer to the screenshot below:

On this page

Back to top