iOS: ignore SIGPIPE & 🙏 it works

This commit is contained in:
Neeraj Gupta 2021-10-06 19:39:17 +05:30
parent 8499f95921
commit 938dbde595
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -13,4 +13,12 @@ import Flutter
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
override func applicationDidBecomeActive(_ application: UIApplication) {
signal(SIGPIPE, SIG_IGN);
}
override func applicationWillEnterForeground(_ application: UIApplication) {
signal(SIGPIPE, SIG_IGN);
}
}