Collecting GPS co-Ordinates

前端 未结 1 1173
無奈伤痛
無奈伤痛 2021-01-26 07:05

I am building a native android app using xamarin. The issue is, that the application collects and displays the coordinates perfectly on the emulator but when I put it on a smart

相关标签:
1条回答
  • 2021-01-26 07:37

    Your phones are probably running MarshMallow which now require that you request permission for location services.

    You can read more about it here https://blog.xamarin.com/requesting-runtime-permissions-in-android-marshmallow/. You might want to use this Nuget package that handles all that for you. https://github.com/jamesmontemagno/Xamarin.Plugins/tree/master/Geolocator

    0 讨论(0)
提交回复
热议问题