SQLite corrupt exception in Xamarin iOS app using HybridWebView

Ritesh Singh 1 Reputation point
2021-06-18T11:37:55.837+00:00

In our iOS application, we have provided the data Downloading feature from the API. Here we first delete the data from the local SQLite database and then insert the newly fetched data from the API into SQLite DB. ​
It works fine for the 1st and 2nd time when we install the app on an iOS device. But after that, if we try to download the data for 3rd time then we get a "database disk image is malformed" error.

The application works fine on Android devices but it is not working in iOS.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,692 questions
{count} votes