Description
I was facing few issues in Zoom Meeting and was not able to find the reason. Then I observed, there was an observer calling to check network availability in the app. When I commented it, Zoom worked fine. Seems like its not compatible with zoom
Which iOS Meeting SDK version?
5.7.6
Smartphone (please complete the following information):
- Device: iPhone 11
- OS:14.5
Additional context
This is code to observe network:
ConnectionManager.sharedInstance.observeReachability()
class ConnectionManager {
static let sharedInstance = ConnectionManager()
private var reachability : Reachability!
private var wasDisconnected = false
func observeReachability(){
NotificationCenter.default.addObserver(
self,
selector: #selector(self.reachabilityChanged(_:)),
name: .reachabilityChanged,
object: reachability
)
do {
try self.reachability = Reachability()
try self.reachability.startNotifier()
}
catch(let error) {
print("Error occured while starting reachability notifications : \(error.localizedDescription)")
}
}
func removeObserver(){
reachability.stopNotifier()
}
@objc func reachabilityChanged(_ note: Notification) {
let reachability = note.object as! Reachability
switch reachability.connection {
case .cellular:
print(“Network available via Cellular Data.”)
hideBanner()
break
case .wifi:
print(“Network available via WiFi.”)
hideBanner()
break
case .none:
print(“Network is not available.”)
showBanner()
break
case .unavailable:
print("Network is nottttttt available.")
showBanner()
}
}
}