Call Initialization
For call UI you need to do following setup, so the call feature can work properly
#
Add Background ModesIn your project target, select signing & capabilities and add Background capabilities.
Capabilities |
---|
App Groups |
Background Modes |
Now, go to the background mode and enable the below given modes
Background Modes |
---|
Audio,Airplay, and Picture in Picture |
Voice over IP |
Background fetch |
Remote notifications |
#
Add Microphone PrivacyAdd Microphone privacy description in your project plist
#
Add Camera PrivacyAdd Camera privacy description in your project plist
#
Add Caller ringtone & reconnecting toneAdd Caller ringtone & reconnecting tone mp3 file in your project.
The file name must follow in the following manner
.mp3 file | File Name |
---|---|
Caller ringtone | fly_call_ringtone |
reconnecting tone | fly_reconnecting_tone |
To add a scene delegate, first, create a new Swift file that you’ll call SceneDelegate
containing a subclass of UIResponder, just like the AppDelegate, and that conforms to UIWindowSceneDelegate. As your app might supports other versions than iOS 13, make this class only available for iOS 13.
To integrate and run Mirrorfly UIKit in your app, you need to initialize it first. Initialize the MirrorFlyUI instance through your view controller.
#
CallNotificationDelegateInitialize CallNotificationDelegate while initializing FlyUIKitSDK
Implement CallNotificationDelegate in AppDelegate to get MFUICallScreenViewController while attend the call