Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

geocoder not working for iOS

$
0
0

Hi,
So I have an iOS problem.

I have a method that is supposed to get the location from an address. I use the geocoder method from xamarin.forms.maps, and it works fine on android, it gives me the correct location, does what it is supposed to do, but on iOS it is not working.

for some reason, after i run this line of code:

var geoPositions = await geocoder.GetPositionsForAddressAsync(tuple.address);

the rest of the code in the method does not execute, it just skips to the end of the method and doesn't do anything else.
i don't get an error or an exception or anything, it just exits the method and continue doing other stuff.
I have tried to use different addresses to see if that was the problem, but the same same thing happened, and it also happened when i tried to use the GetAddressForPositionAsync method with coordinates.

Any insight into why this is happening would be greatly appreciated, thanks.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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