Steps to follow:
- Create Flutter sample project
- Add
Enx flutter SDK
as a dependency inpubspec.yaml
file - For iOS run command
flutter build ios --no-codesign
Device Permission
SDK requires camera and microphone permission to start video call.
Setup for iOS
Open the info.plist
and add:
- Privacy – Microphone Usage description and add a note in the Value column.
- Privacy – Camera Usage description and add a note in the Value column.
Your application can still run the voice call when it is switched to the background if the background mode is enabled. Select the app target in Xcode, Click the Capabilities tab, enable Background Modes, and check Audio.
iOS Black Screen
Our SDK use PlatformView
, you should set io.flutter.embedded_views_preview to YES in your info.plist
See Sample App
Error & Exceptions
iOS SDK method call might face exception cases and fail. In such cases a JSON is returned through Callback. Example of JSON Object given below:
{ "errorCode": Number, "msg": "String", "desc": "String" }
errorCode
– Number. Error Code.msg
– String. Error Message.desc
– String. Optional. Descriptive explanation of the error.