Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

This functionality is not implemented in the portable version of this assembly.

$
0
0

Hi guys!

I am trying to use Xam.Plugin.Geolocator version 3.0.4. My code is quite simple but I cannot the listener started! I see this error! Has anybody found the solution?

Sample Code

    protected override void OnStart()
        {
            try
            {
                if (CrossGeolocator.Current.IsListening == false)
                    CrossGeolocator.Current.StartListeningAsync(1, 1D, true);
            }
            catch (Exception ex)
            {

                throw;
            }
        }

Error:

System.NotImplementedException: 
This functionality is not implemented in the portable version of this assembly.  
You should reference the NuGet package from your main application project in order to reference the platform-specific implementation.

at Plugin.Geolocator.CrossGeolocator.get_Current () [0x0000d] in 
C:\projects\xamarin-plugins\Geolocator\Geolocator\Geolocator.Plugin\CrossGeolocator.cs:23 

at PureAgility.RealtimeTracking.App.OnStart () [0x00008] in D:\src\TrackingTracking\App.xaml.cs:27

PS: I added Xam.Plugin.Geolocator to all projects and I am running it on a physical device!


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>