A cross-platform .net library that goes with Xamarin and Xamarin Forms to provide device specific API such as GPS, Media, etc
Questions tagged [xamarin.essentials]
195 questions
1
vote
1 answer
Xamarin Essentials's FilePicker doesn't allow picking any files on iOS
I need to import CSV/SQLite3 files in my app to restore settings from previous offline backups. I use Xamarin.Essentials.FilePicker and it works perfectly on Android, however when trying it on iOS all the files are greyed-out and I can't select any…

E. Epstein
- 739
- 2
- 11
- 26
1
vote
1 answer
Xamarin Forms: How to use Embedded Videos from local forlder?
I've tried looking for a solution but I cannot find one everyone seems to be using online sources and no one actually shows how to use videos from the local folder.
I want to have a folder under Assets for Android and Resources for iOS called Videos…

ThisQRequiresASpecialist
- 929
- 4
- 19
1
vote
1 answer
Xamarin Essentials Permissions.RequestAsync does not return
When calling Permissions.RequestAsync() I do not get any result and the App is getting stuck. No matter, if the user accepts or denies the request.
I've set up MainActivity as described in the documentation:
public…

Stephan Häberle
- 340
- 2
- 14
1
vote
1 answer
API with Xamarin.Essentials: Web Authenticator apple error 500
on my api server I use Xamarin.Essentials: Web Authenticator to login via social account (google, fb, apple). It works fine for google and facebook logins, but not apple. Nginx when logging in via google returns something like this:
-…

patriczi
- 41
- 5
1
vote
1 answer
Xamarin.Essentials Unable to select images in "File Picker" on iOS
When I try to select an image using the "File Picker" in Xamarin.Essentials, I can't select it only in the iOS simulator.
Xamarin.Essentials: File…

hibara
- 137
- 11
1
vote
0 answers
Why am I getting Xamarin.Essentails.FeatureNotSupportedException only on my Samsung device
I am trying to open a webpage. The specific Code for that is
Browser.OpenAsync(uri, new BrowserLaunchOptions
{
LaunchMode = BrowserLaunchMode.External,
});
On Virtual Devices both Android and iOS as well as on physical iOS devices and on some…

Maritn Ge
- 997
- 8
- 35
1
vote
0 answers
Xamarin Forms Xamarin.Essentials: Web Authenticator with ASP.NET Web API Social Login
I'm using Xamarin Forms mobile app with backend api using ASP.NET Web API project. The Web API is able to login with Facebook using Ajax and Web API methods such as (api/account/externallogins, api/account/registerexternal).
From Xamarin Forms…

Su Ming Yuan
- 125
- 12
1
vote
2 answers
Is there a way to get Xamarin.Essentials.Preferences by shareName
I'm using Xamarin.Essentials to store user preferences for my application. I have a scenario where I want to store multiple preferences which I'm using "sharedName" for (see code below).
const string bShare = "BreakfastPrefs";
private bool…

MisterZeeba
- 95
- 1
- 5
1
vote
0 answers
Xamarin Forms / Xamarin.Essentials - How to ensure that "Always Allow" Location permission has been granted from within the iOS app
I have a Xamarin Forms app running on iOS, which needs to receive location data even when not running in the foreground.
When the app first runs, the user is prompted to grant the location permission, from the options:
Allow "My App" to use your…

user2209634
- 529
- 7
- 27
1
vote
2 answers
Xamarin Forms Getting foreground service location updates with CrossGeolocator
I am using the CrossGeolocator plugin to subscribe to location updates in a Xamarin Forms application, for Android (for iOS, location updates will continue even when the app is in the background).
I implemented a Foreground Service so that I can…

user1501591
- 41
- 5
1
vote
0 answers
Xamarin.Forms: Xamarin Essentials GetLocation() always returns null when run on Android 11
I have a Xamarin Forms app where I am trying to get location of the phone using Xamarin Essentials. App targets Android version 11 (API 30). I have provided all the location permissions in manifest file. It works fine below Android 11 but having…

Jason Roy
- 43
- 6
1
vote
0 answers
Using Xamarin.Essentials FilePicker in iOS, how do I specify FileTypes with several odd extensions?
Currently I am only trying to do this in iOS, but I don't know where to look for how to describe an iOS file type. These are "plain text" files, but with specific odd extensions. I tried "text/plain", but that did not "light up" my files for iOS…

bobwki
- 794
- 6
- 22
1
vote
0 answers
How to save data from Sensors (accelerometer, Gyroscope ) in a .csv file
I'm receiving data from Accelerometer (x,y,z) and Gyroscope (x,y,z). how can I save them in an .csv file ?? I'm using xamarin-forms (Xamarin-Essentials)- I want to save them in local intern Memory of the Android or iOS Smartphones. I want to start…

AAA
- 13
- 4
1
vote
2 answers
iOS doesn't open Zoom app using Xamarin Essentials Launcher.OpenAsync
My xamarin.forms app is meant to join a Zoom meeting on a mobile device using Launcher.OpenAsync() with a uri scheme of the form "zoomus://zoom.us/join?confno=1234567890&pwd=123456".
This works fine on Android, but on iOS it doesn't seem to do…

Jennie
- 11
- 3
1
vote
0 answers
Geolocation.GetLastKnownLocationAsync() is not working in android
I am working on xamarin forms. I am using xamarin.Essentials library to get the current location. In iOS it is working fine but in android it hangs the app when I call Geolocation.GetLastKnownLocationAsync(). Means after calling following line, it…

anand
- 1,399
- 5
- 23
- 55