Microsoft.Datasync.Client.SQLiteStore.SQLiteException: Unable to configure sqlite3 for URI connection strings - xamarin.android

I am getting this error "Microsoft.Datasync.Client.SQLiteStore.SQLiteException: Unable to configure sqlite3 for URI connection strings." when trying to create an offline store in xamarin android project using the Microsoft.DataSync.Client.SQLiteStore. The target android version is Android 12.
This is how i am creating an offline store.
var dbPath = $"{FileSystem.AppDataDirectory}/devstore.db"; var lcStore = new OfflineSQLiteStore($"file:/{dbPath}?mode=rwc");
Any idea why this is happening?.
I tried searching for some resolution and changed the android folder paths to personal and all as per some advice but no luck resolving this.

Likely, SQLite is already configured. Underneath, sqlite3_config() returns SQLITE_MISUSE, indicating that SQLite has already been configured.
There is a pending release that will fix that specific problem, and I'll be producing a new NuGet package later on today (Feb 3rd) to correct this problem.

Related

Visual Studio Deploying to Hololens Access is Denied

I am trying to deploy to Hololens 2. I followed all of the documentation located here for deploying from USB, but when I go to Debug .> Start without Debugging, I get the following error message:
Unable to activate Windows Store app. 'Template3D__pzq3xp76mxafg!App'.
The activation request failed with error 'Access is Denied'.
Has anyone else gotten this error before? How did you solve it? There doesn't seem to be any documentation anywhere.
The error message may be caused by various different reasons. And for now, we guess that the issue may happens when VS is trying to activate another app with the same package name on your HoloLens. So, we think the following steps worth trying for you.
Uninstall the existing app with the same name on your HoloLens.
Rebuild your Unity project to another empty folder, then open the UWP project with VS.
Update the DisplayName and Package name property in the Package.appxmainfest file with another name.
In my case, uninstalling the app and deleting the existing build folder didn't help. The solution was very simple: You need to be signed in on the Hololens 2 and keep it on your head. I'm using a PIN for my account and also paired the Hololens and allowed the developer options. I just tried several times to confirm and without logging in, I get exactly the described error. I'm deploying over USB.

FirebaseInstanceId.Instance.Token returns null

I have created a Xamarin.Android application targeting Oreo 8.1. I integrated Firebase notifications in my application. It was working fine till now but since last week I am getting strange error where var token = FirebaseInstanceId.Instance.Token; returns null. Also my FirebaseInstanceIdService does not get invoke when my app is installed for the first time on user's device.
I have tried several solutions including firebaseinstanceidservice-gettoken-returning-null
I tried to clean my solution several times even deleted bin and obj folders but still no use. I even tried to create new Firebase console app's google-services.json file but still receiving the same problem.
I will really appreciate your help. Thanks

Firebase storage download trouble in iOS device (Unity)

I met unknown trouble trying to setup firebase storage for iOS. I can't download even 1 file in device, but it runs perfectly in Editor.
I am using reference.GetFileAsync() method. Firstly I assumed that I made some wrong package setup or some other silly mistake, but I checked it many-many times. Each Quickstart project here works well on my end. My current project settings and firebase storage settings are identical to provided test examples I run in iOS device successfully.
Here is a xCode output trying to download the file. That is looped and contains only that info: codeshare
Any of logs googling doesn't give me any solution or even idea.
Please, give me some thoughts where to search the problem.. I am totally confused.
I am using MacOSx, Unity 5.5.0/5.5.1, latest Firebase Unity SDK (v1.1.2)
The reason was that firebase database package automatically changed from .NET Subset to .NET option. Changing back solved the problem. But anyway, that means we can't use firebase storage + database in same iOS project in Unity.. That's bad
Firebase Developer here. I'm sorry you encountered this error and I can confirm this was a regression from our initial build in January. This issue has since been resolved in the latest version of Firebase Storage for Unity (3.0.0.0) released for general availability for mobile at GDC.
The latest version will work with the full .Net SDK which is also required for the realtime database in Unity.

Changes to sqlite in ios 7/XCode 5

I am working on an app that I originally built to support iOS 5.1/6.0/6.1. I recently upgraded to XCODE 5 and the sqlite 'select' queries now all return null although the correct database is there, and have been connected to and the tables recognized. The strange part is that the app is working flawlessly on all the simulators 5.1-7.0 but not on an actual device. I only have 5.1 device available to test.
I reinstalled XCode 4 and the app is compiling and running as expected on iOS 5.1 device. Are there any changes that to the SQLITE or the compiler or some other component in XCode 5 that would give this problem?
Code could be provided if that would assist in helping troubleshoot the problem.
Verify the sqlite's file size, i have the same problem but i resolved copying the pre populated .sqlite to the Documents directory via Finder at
/Users//Library/Application Support/iPhone Simulator//Applications//Documents. But first let core data create the wrong sqlite before then replace the file created for the correct one.
Seems like Xcode doesn't copy the pre populated sqlite file to the main bundle instead it create a new one based on the core data model.

Application Installation error Blackberry

I have an application of mine on AppStore. But one user is complaining that he can not install the application on his device(Curve 8900) and it's giving error
"Error starting AppName
$28NonTouch$29:
Module 'AppName
$28NonTouch$29-2' has
verification errors."
Now how come it is possible that other's users are able to download properly while one user is getting this error. I downloaded the application from the appstore and its working perfectly.
And when this user tries to install the application through Desktop Manager he is getting error
"No additional applications can
be found. Your file may contain applications that already exist in the
application list, are not compatible for your device, or have errors."
When i tried to stimulate the issue here by installing the application through desktop manager i am able to install it properly without any error messages.
Can anyone suggest me ,what might be causing this issue.?? Is there any kind of version mismatch??
My application is compiled usiong jdk 4.5.
Any help in this regard will be greatly appreciated.
Kindly help,Its urgent..
Thanx in advance."
Probably the problem is related with the version specified in the .alx file.
Check the .alx file and remove the "_blackberryVersion" tag, or change it so it matches the OS version on your device.

Resources