Hi, I’m facing an issue with SQLite on iOS. It used to work fine some time ago, and it still works flawlessly on Android. However, on iOS, I’m encountering a connection problem. Has anyone else experienced a similar issue recently? I would greatly appreciate any insights or suggestions.
string dbPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
dbPath = Path.Combine(dbPath, "highscoredata.sqlite");
_database = new SQLiteAsyncConnection(dbPath);
_database.CreateTableAsync<HighScore2>().Wait();
public Game1()
{
_graphics = new GraphicsDeviceManager(this);
//Content.RootDirectory = "Content";
Content.RootDirectory = "Content/bin/iOS/Content/";
_graphics.IsFullScreen = true;
graphics.PreferredBackBufferWidth = ScreenWidth;
graphics.PreferredBackBufferHeight = ScreenHeight;
_graphics.SupportedOrientations = DisplayOrientation.LandscapeLeft | DisplayOrientation.LandscapeRight;
_graphics.ApplyChanges();
//high score version sqlite
_highScores = new HighScoreDataStore();
}
Thank you in advance for your help.