For apps that use cordova-plugin-ionic
versions less than 5.5.2, the iOS version of the app may not be able to receive live updates. This issue can happen while the live update is being downloaded and will be associated with the following error message in the Xcode logs:
[28: No space left on device]
Which will appear along with varying references to the following NSURLSession
related errors:
_NSURLErrorFailingURLSessionTaskErrorKey
_NSURLErrorNWPathKey
This issue was likely introduced for iOS versions 14.2 and above but our own observations suggest that the issue was most prominent on iOS 15 devices. We believe the issue was caused by a new restriction on the NSURLSession
limit on iOS which reduces the amount of simultaneously active sessions that the live update plugin needs to download the files for a live update. Live updates with small differentials were not impacted by this change since the amount of files downloaded during the live update process stayed within the new NSURLSession
limit. However, larger differential updates or full updates were more likely to fail because the file count for these kinds of updates tended to exceed the NSURLSession
limit.
This issue was resolved in version 5.5.2 of the cordova-plugin-ionic
plugin which better manages the active NSURLSessions
to stay within this limit. Therefore, this issue can be resolved by using the latest version of the cordova-plugin-ionic
plugin in these native apps. Note that since this is an update to a native plugin, an app store release is required. So a new native build will need to be pushed to the store with the updated plugin. Additional information and installation instructions for this plugin can be found here.
Comments
0 comments
Article is closed for comments.