logo
On this page

Customizing the icon for the iOS CallKit UI

Below, we will using the example of setting a CallKitIcon icon, to explain how to set the icon for the CallKit lock screen interface on iOS system .

  1. Place your icon file in the ios/Runner/Assets.xcassets/ folder, as shown in the figure, with the file name CallKitIcon.imageset.
Tip

The icon should be square and have a transparent background.

  1. When calling ZegoUIKitPrebuiltCallInvitationService.init, configure the iOSNotificationConfig.systemCallingIconName parameter with the file name (without the file extension).
Untitled
ZegoUIKitPrebuiltCallInvitationService().init(
...
    notificationConfig: ZegoCallInvitationNotificationConfig(
        iOSNotificationConfig: ZegoIOSNotificationConfig(
          systemCallingIconName: 'CallKitIcon',
        ),
    ),
...
1
Copied!