Plugin and Permission Changes with iOS 11

JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai

Oct 18, 2017 - We just blogged about Plugin and permission changes with iOS 11!

Read the post here
Discuss below

Posts

  • Ryokan_OshohRyokan_Oshoh USMember

    Thank you for your information about iOS11 update.
    However, after update geolocation, I cannot get geolocation data,
    but get this exception data.

        private async Task<Position> getGeoPosition()
        {
            Position position;
            try
            {
                var locator = CrossGeolocator.Current;
                position = await locator.GetLastKnownLocationAsync();
    
            }
            catch (Exception e)
            {
                position = new Position();
            }
    
            return position;
        }
    

    --Exception data--
    "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\geolocatorplugin\src\Geolocator.Plugin\CrossGeolocator.cs:27 \n at AppName.TalkingPage+d__8.MoveNext () [0x00018] in /Users/username/Xamarin_Dev/AppName/RobiApp1/Views/TalkingPage.xaml.cs:170 "

    How do I setup these?

  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai

    @Ryokan_Oshoh,

    That's usually an indication that the NuGet package was not installed into the platform (Android, iOS) projects. Try adding the package to to those projects too.

  • Ryokan_OshohRyokan_Oshoh USMember

    @JohnMiller

    Thank you for advise me.
    I added NuGet package(geolocation) into Xamarin.iOS.
    So, I can get geo Datas.

    Doumo Arigatou Gozaimasu.

Sign In or Register to comment.