0
我正在使用ios遞歸函數發送消息'我的應用程序需要請求你的位置',每當用戶關閉他的GPS時,消息應該再次出現請求他的位置。Xamarin遞歸定位請求
我只是用:
public bool LocationServicesEnabled {
get {return CLLocationManager.LocationServicesEnabled;}
}
public bool IsAuthorized {
get {return CLAuthorizationStatus.Authorized == _authstatusLast;}
}
有了這些功能,第一個回我是服務的啓用,第二個,如果用戶autorizate它。
剛纔,我可以做類似的東西:
if(_locationServiceEnalbed && IsAuthorized){
Manager = new LocationManager();
Manager.StartLocationUpdates();
}
但沒有再次請求了我的位置。 如何再次顯示請求用戶位置的消息?