Cannot even run the project

Hey @mohammed.adel.sorour ,

I am happy to hear @jon.zoom was able to get your android implementation running, he is very helpful indeed. :slight_smile:

I am not super familiar with flutter, but this error usually happens when you are trying to access something that has already been deallocated. Is it possible to share a screenshot of what Xcode prints out to the terminal at the bottom when the app crashes?

Thanks!
Michael

i managed to fix all crashes
the app is ready to be published to app store
my last question (hopefully) will be have to add share screen option to the normal action sheet that appears when click share screen button

right now i need to open control center then click record then select my app

i would like to make the share screen process like the zoom ios official app

the fix for share screen not visible:

solution:
func onClickShareScreen(_ parentVC: UIViewController) {
if #available(iOS 12.0, *) {
var broadcastView = RPSystemBroadcastPickerView()
broadcastView.preferredExtension = "screen share extension id "
broadcastView.tag = 1
self.view.addSubview(broadcastView)
if let view = self.view.viewWithTag(1) as? RPSystemBroadcastPickerView {
broadcastView = view
}
if broadcastView == nil {
return
}

         for subView in broadcastView.subviews {
             if subView is UIButton {
                 let broadcastBtn = subView as? UIButton
                 broadcastBtn?.sendActions(for: .allTouchEvents)
                 break
             }
         }
     }
}

Hey @mohammed.adel.sorour,

Were you able to get everything working?

Thanks!
Michael

@Michael_Condon
yes and the app is working fine
but after Production
the screen share crashes when the app go to the backgroun :Production issue

Hey @mohammed.adel.sorour,

Are you receiving any errors within your SampleHandler when this happens?

Thanks!
Michael

this is a production level(live version of the app) of errors
although the final version (development) was working as it should
with no errors even with older phones like iPhone 5s

Hey @mohammed.adel.sorour,

Is it possible that for your release target you do not have the required background permissions that are present in your development target? This might be Apple denying the app from accessing certain things in the background. Background Modes Tutorial: Getting Started | raywenderlich.com
It also may be worth checking that your provisioning profile has access to this for a release build.

Thanks!
Michael

Does the permission change by itself from development level to production level?

Does Share screen require special
Modes rather than background fetch and background audio?

Hey @mohammed.adel.sorour,

No, there just needs to be the background mode “Audio, Airplay, and Picture in Picture”.
Are you using the same provisioning profile for your production version as you are for the development version?

Thanks!
Michael

Thanks Michael
the app was missing background modes
i really cannot thank you enough , i went from zero to little hero with zoom sdk in few months
thank you for being patient and able to communicate with Junior devs.
the app is up and running , i think we may be the first flutter app to have native implementation for ZOOM SDK Android and iOS
we would like to be featured on App Market place if possible

i will write ASAP a full documentation for my last 2 months of development for both iOS and Android integration with flutter and an acknowledgment for your effort and @jon.zoom will be mentioned .
Thanks!

2 Likes

Hey @mohammed.adel.sorour,

Awesome! Thank you so much for the kind words :slight_smile: I am so proud of you!! What you have accomplished is no small feat, junior developer or otherwise! Nice job!

Keep climbing!
Thanks!
Michael