Wise Flutter SDK - iOS Integration
Last updated
Last updated
To run the meetings in iOS app, the Zoom SDK needs to integrated natively.
Open your flutter_project/ios/Podfile
and uncomment / set platform target as 13.0 (or greater)
In terminal, navigate to flutter_project/ios
folder and install pods
Open Runner.xcworkspace
from ios folder.
Download Zoom SDK iOS and unzip the file. The zip contains following files.
MobileRTC.xcframework zoomcml.xcframework
MobileRTCResources.bundle
MobileRTCScreenShare.xcframework
Move the lib
folder into your project by dragging and dropping into xcode.
Select Runner target and add MobileRTC.framework
and zoomcml.xcframework
to Frameworks Libraries and Embedded content
Add MobileRTCResources.bundle
to Build Phases → Copy Bundle Resources section.
Make sure that the Build Phases order is as shown below.
Add the required permissions to Runner → Info.plist
file.
Now add MobileRTC.framework
to Pods → wisesdk → Frameworks Libraries and Embedded content.
Keep the wisesdk → Build Phases order in following manner.
✅ At this point your can run your app and test the meeting.
To enable screen share during meetings, a Broast Upload Extension has to be added.
Select Runner target and click on bottom + icon and select Broastcast Upload Extension
Give the extension a name.
Select newly created ScreenShare target and add MobileRTCScreenShare.xcframework
to Frameworks & Libraries
Select ScreenShare folder on left panel and go to File → New → File and select Objective-C file and proceed. Give the file a name and click on Create Bridge Header at the end.
Once the bridge header file is created, you can delete the Objective-C file that is created.
Open ScreenShare-Bridging-Header.h
and add below code.
Now open SampleHandler and add below content. Keep same group id that is used in flutter code.
Select Runnder, select Signing & Capabilities tab, click Capability and add App Group.
Do the same for ScreenShare extension also. In summary, both the Runner and ScreenShare should have same group Id.
Select ScreenShare → Build Settings → Other Linker Flags and -lc++
flag.
Add the below frameworks to ScreenShare → Build Phase → Link Binary with Libraries
CoreGraphics.framework
CoreVideo.framework
CoreMedia.framework
VideoToolbox.framework
✅ Now you can run the app and test the Screen Share option in the meeting.