Questions tagged [xamarin.essentials]

A cross-platform .net library that goes with Xamarin and Xamarin Forms to provide device specific API such as GPS, Media, etc

195 questions
0
votes
1 answer

Can Xamarin.Essentials track first launch even the user delete and re-download the application?

I am developing an application which will award user 200points when they first download the application, and I found that Xamarin.Essentials able to track whether the user is first time launching the application, but will it able to track even the…
0
votes
1 answer

Xamarin Essentials Geolocation Timeout Issue

I have a multi-platform app which pulls current location and uses that in a loop to calculate the distance to each item. It is using wineriesView.ItemsSource = await App.WineryManager.GetWineries(seltyp,selval,selwrs); to load each item which…
0
votes
1 answer

Xamarin Essentials - Connectivity.NetworkAccess incorrect on Pixel 3?

I have a function similar to this: private bool IsConnected() { if (DeviceInfo.DeviceType == DeviceType.Unknown) return false; var current = Connectivity.NetworkAccess; if (current == NetworkAccess.Internet) return…
0
votes
1 answer

Xamarin Essentials browser call giving Asynchronous method 'Anonymous' should not return void

I updated Visual Studio and now I am getting a lot of messages like this: public ICommand OpenWebPageCmd => new Command(async (url) => { await Browser.OpenAsync(new Uri(url), BrowserLaunchMode.SystemPreferred); }); Asynchronous method…
Alan2
  • 23,493
  • 79
  • 256
  • 450
0
votes
1 answer

What is the differnce between "using" and an "assembly"?

when I was using Xamarin.Essentials, I needed to add an assembly reference. What is the difference between them? I though both were references. Thanks!
mx1txm
  • 139
  • 2
  • 10
0
votes
1 answer

Geolocation PositionChanged Xamarin essentials (not planned)

I have ported most of my stuff to xamarin essentials,however I have noticed that geolocation "PositionChanged" event listener has not made it in xamarin essentials and there is no plan for it and I need it!! Do I need to revert to the "OLD" PLUGIN…
developer9969
  • 4,628
  • 6
  • 40
  • 88
0
votes
1 answer

xamarin Essentials: No overload for > 'OnMainDisplayInfoChanged' matches delegate > 'EventHandler'

I am following a Xamarin Example with my code: public App() { InitializeComponent(); DeviceDisplay.MainDisplayInfoChanged += OnMainDisplayInfoChanged; } void OnMainDisplayInfoChanged(DisplayInfoChangedEventArgs e) …
Alan2
  • 23,493
  • 79
  • 256
  • 450
0
votes
1 answer

Need a way to continually track user's current location in Xamarin Forms on both Android and iOS

I am working on a senior project for school that requires me to continuously track users through their phones GPS coordinates. My end goal is continually to update my Mapsui map with the current user's location. I am hitting a roadblock on how to…
Matt Ohren
  • 21
  • 1
  • 1
-1
votes
1 answer

Xamarin.Essentials "The type or namespace name 'UsesPermission' could not be found are you mission a using directive or an assembly reference?

using Xamarin.Forms.Xaml; using Xamarin.Forms.PlatformConfiguration; using Xamarin.Essentials; [assembly: XamlCompilation(XamlCompilationOptions.Compile)] [assembly: UsesPermission(Android.Manifest.Permission.Vibrate)] It seems the last line of…
-1
votes
1 answer

Best way to crop images taken by Media Picker in xamarin forms

I want to crop an image in xamarin forms with an interface that the user can crop mannualy the image taken from Xamarin.Essentials Media Picker. I´m using the MVVM pattern. I tried to use SkiaSharp, but not work properly. Any ideas? Thanks For…
Matheus
  • 69
  • 5
-1
votes
1 answer

How to share application link using Xamarin Essentials Share to other users and open application once they click?

Is there a way to share application page URI using Xamarin Essentials Share and when other user clicks on same shared URI it should open application if it's installed? Do I need to use App links? The issue is I don't have website and cannot use app…
Zeeshan shaikh
  • 341
  • 1
  • 5
  • 24
-1
votes
1 answer

Button Click event handler and using async void

I am getting myself confused about async void and button handlers. I heard in a video tutorial that it was not wise to use async void. I have reviewed these questions: question question In many answers it does actually use this syntax. Thus my…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
-1
votes
2 answers

How to Bind a visual element HeightRequest which is inside a ScrollView to equal to the Height of the Page?

I'm trying to set a BoxView's Height to the Height of the page (I'm using Xamarin Essentials for this). The BoxView is contained in a StackLayout and that StackLayout is contained in a ScrollView like this:
Ryan Gaudion
  • 695
  • 1
  • 8
  • 22
-1
votes
1 answer

Send an email with xamarin essential

I use the following sample to sent a simple email. https://learn.microsoft.com/en-us/xamarin/essentials/email?tabs=android The first time when I run xamarin forms app and call the sent method the popup with apps for selection appeared. I selected…
G.Mich
  • 1,607
  • 2
  • 24
  • 42
-2
votes
2 answers

iOS App Restarts After Changing Revoked Privacy Settings

No code to show, but merely a question on something that I'm sure has irked other developers/users. When a user has revoked/denied permission to their Photos for a given app and then later changes to "Read and Write", the app resets/refreshes when…
linktheory
  • 440
  • 1
  • 8
  • 18
1 2 3
12
13