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
2
votes
1 answer
xamarin-essentials text to speech "speakasync" not playing audio in IOS device
It's working fine on android and iOS simulator, however when using an iOS Device(Iphone), the audio does not play at all.

kiflay
- 699
- 2
- 7
- 14
2
votes
1 answer
How to stop/cut-off xamarin essentials text-to-speech on iOS to start new speech
Having trouble stopping xamarin essentials text-to-speech in order to start a new text to speech "SpeakAsync" call w/ Xamarin.Forms.
Using this application as a simulated operator for a "practice phone call", I would like to cut off the operator…

schwartzdotwork
- 113
- 1
- 16
2
votes
2 answers
Geolocation GetLastKnownLocationAsync() permission exception from Xamarin Forms - call fails and no permission prompt
GetLocationAsync fails on my Xamarin.Forms app.
I've got the latest Xamarin.Essentials nuget package.
I've set the necessary permissions in the info.plist.
I am calling this from my ViewModel.
The call is super simple:
var location = await…

Andrew Chung
- 417
- 4
- 15
2
votes
1 answer
Unable to add Xamarin.Essentials package to project
I'm unable to add Xamarin.Essentials package to my cross platform project through
Manage NuGet packages after processing it shows the following error:

Hashir Malik
- 798
- 2
- 9
- 27
2
votes
1 answer
How can I get GPS Location of my device in Xamarin Forms?
I want to get the Longitude and Latitude of my device when the entry box named entLocation is focused. I am using Xamarin.Essential Geolocation to get the GPS location of my device I followed the documentation and tutorials and still I am unable to…

loot verge
- 449
- 1
- 12
- 31
2
votes
0 answers
How to get bluetooth connection status with Xamarin Essentials
I am trying to use the Xamarin Essentials Connectivity class in a Xamarin.Forms project to check if bluetooth is available:
var networkProfiles = Connectivity.Profiles;
if (!networkProfiles.Contains(ConnectionProfile.Bluetooth))
{
//Do…

Mikhail
- 31
- 3
2
votes
1 answer
C# , Xamarin.Essentials Secure Storage
After reviewing my options regarding saving JWT token, I chose Xamarin.Essentials Secure Storage.
Problem being that my app always breaks when trying to save a token within the storage with the following error:
"System.AggregateException has been…

Khal_Tech
- 315
- 1
- 3
- 13
1
vote
1 answer
How I can fix the warning about locationManagerDidChangeAuthorization and authorizationStatus in #Xamarin.Forms?
First of all, I did a little research but only found for Swift a native iOS answer.
The complete warning says:
This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the…

Carlos M Gomez
- 65
- 2
- 8
1
vote
1 answer
Influence Share Options on Android (Xamarin.Forms)
I'm using xamarin.forms (rn I only care about android) and I want to share a file from within my app to another app.
await Share.RequestAsync(new ShareFileRequest
{
Title = "Select a target",
File = new ShareFile(FilePath)
});
This works…

decapitation
- 41
- 5
1
vote
1 answer
Browser.OpenAsync different behavior on APIs 33 and 32
I'm opening a twitter URL with the following code await Browser.OpenAsync(twitterUrl, BrowserLaunchMode.SystemPreferred); in a project that targets Android API 33.
When running this on the emulator Android 13 opens the link in a browser. On the…

Costas
- 459
- 3
- 15
1
vote
0 answers
Xamarin Essentials Web Authenticator & Open Browser
For reference:
https://learn.microsoft.com/en-us/xamarin/essentials/open-browser?context=xamarin%2Fandroid&tabs=android
https://learn.microsoft.com/en-us/xamarin/essentials/web-authenticator?context=xamarin%2Fandroid&tabs=android
I am using both…

ChampChris
- 1,565
- 5
- 26
- 44
1
vote
1 answer
Is it recommended (or even possible) to remove permissions from an app on Android after they have been granted?
I am using Xamarin and Xamarin.Essentials, although this question probably applies to all Android development.
I have an application which asks the user for permission to read activity (steps) from the hardware. The user can either grant or deny…

Victor Chelaru
- 4,491
- 3
- 35
- 49
1
vote
1 answer
CapturePhotoAsync function on Xamarin Forms works well on emulator but rotates images on debugging with actual device
The Xamarin Essentials MediaPicker function to capture with camera using the CapturePhotoAsync runs correctly on the emulator but behaves differently when a mobile phone is connected to debug the program. I believe this is a bug and I would…

Victor
- 13
- 2
1
vote
1 answer
How to restrict the apps in the share dialog in Xamarin Forms?
I can share some text or files with external apps with Xamarin.Essentials: Share Feature.
Well, can I restrict the apps shown in the popup to share? For example, can I set it to show gmail but not whatsapp in the popup?
I need this for both ios and…

Pelin Konaray
- 272
- 1
- 3
- 15
1
vote
0 answers
Xamarin Android WebAuthenticator bug
Im having a problem using WebAuthenticator on Xamarin.Android
Everytime i try to log in via a external service (Goverment From Brazil) it returns me Java.Lang.RuntimeException: 'Unable to instantiate activity ComponentInfo
Heres the class that…