On Uno Platform how do you use Preferences.Set command - xamarin

I have an existing Xamarin app which uses
Preferences.Set("xxx","yyy");
which is in Xamarin.Essentials
It works OK Android, iOs and UWP.
When I add as WASM project to run the project in Browser this command does not work.

Xamarin Essentials only provides implementations for iOS, Android, and UWP. So in Platform Uno you are going to have to provide your own implementations for other platforms such as WASM, WPF, macOS, and Tizen.

Related

Xamarin ios app to run on Mac with mac-catalyst

we're currently wrapping up our cross platform xamarin forms app that is being deployed on android, UWP and iOS.
Just wondering with the introduction of Mac Catalyst has anyone had any success or information on making their xamarin ios app run natively on the mac using this feature or would they just be using xamarin.mac?
Through this thread, it looks like the mac-catalyst of xcode11-feature has not been supported so far.
And you can follow this issue link to track the process of adding support for Catalyst.
Will be available with .NET 6 this Fall (2021). According to their plan.

How to print from Xamarin application?

Is it possible to print from a xamarin application to a pos printer?
I search in xamarin docs about printing but i only found a microsoft UWP sample. Is this for xamarin development also? Probably i miss something so can anyone guide me how to print from a xamarin application silently to a ECS/POS printer?
Xamarin supports .NET Core technology. Xamarin.Forms is the user interface technology. Printing is something that is not covered with either of those.
You can print with Xamarin.Forms as each platform (iOS, Android, UWP etc) supports printing and Xamarin supports 100% of APIs of each platform, however you need to write the code separately, for example for UWP you can use the link you found above, but it will work only on UWP.

Xamarin Bluetooth library

I need to write a Xamarin Native (not Xamarin.Forms) solution for Android and iOS.
The application needs to find and communicate with a bluetooth device.
The device uses classic Bluetooth and not BLE.
Is there a good library for cross-platform (Core) or native that support API > 19? I only found libraries for Xamarin.Forms or BLE.
I tried the solution of creating a BroadcastReceiver but it seems to not work on some version of Android.

Xamarin or Xamarin.Forms for Android and classic Windows?

Is there a way to create a Xamarin or Xamarin.Forms solution that targets Android and classic Windows to produce a Windows 7,8,8.1,10 executable (exe)?
I am not interested in UWP.
Xamarin.Forms will support WPF in the future so you will be able to deploy an EXE file to those platforms. Read more about it here on the blog.
Also, you can always share the business logic, data and other layers with any other .NET application so having an Android app, Windows app and a core project that doesn't depend on Xamarin is perfectly fine.
You can already take a look at the WPF branch of the Xamarin.Forms project on GitHub.

Xamarin.Forms, are there any other application types?

Are there any other way to create Android Application except Xamarin.Forms ?
There is a remark
"The equivalent app written with Xamarin.Forms is called Todo."
at https://github.com/xamarin/mobile-samples/tree/master/TaskyPortable.
So, which application type present at this link?
You can use the Xamarin Native to develop the Android Application. Here is the link to get started with the Xamarin Native with Android: https://developer.xamarin.com/guides/android/getting_started/
And you can also use the Xamarin.Forms Portable and Shared for the Android, iOS, UWP, Windows Phone 8/8.1 and Windows 8.1 application development.
Thank You.

Resources