2016-05-06 14 views
0

Ich benutze mvvmcross location plugin und es funktioniert gut in android. Aber iOS-Version funktioniert nicht. Wenn ich meine App installiert habe und den Standortdienst in den Einstellungen überprüft habe. Ich habe es auf "Immer" eingestellt. Es ist, wie ich Standort Beobachter starten:Mvvmcross Standort iOS funktioniert nicht

MvxGeoLocation _location; 
IMvxLocationWatcher _locationWatcher = Mvx.Resolve<IMvxLocationWatcher>(); 
_locationWatcher.Start(new MvxLocationOptions(), OnLocation, OnError); 

enter image description here

Wenn ich meine app starten und klicken Sie auf Start-Position-Knopf - nichts geschieht. Und ich habe meine Ortungsdienste dann erneut geprüft:

enter image description here

Antwort

1

Ok, ich habe es gefunden. Ich sollte das zu meiner info.plist

<key>NSLocationAlwaysUsageDescription</key> 
<string>Your message goes here</string> 
<key>NSLocationWhenInUseUsageDescription</key> 
<string>Your message goes here</string> 
hinzufügen
Verwandte Themen