我的应用程序需要用户当前位置到他的方向显示在谷歌地图苹果二进制拒绝(2.16)
下面的特定位置是在网络展示位置的代码视图 -
[self.getDirectionsWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f",currentLocation.coordinate.latitude,currentLocation.coordinate.longitude,self.projectLatitude,self.projectLongitude]]]];
该应用程序声明支持位置在.plist中使用NSLocationAlwaysUsageDescription和NSLocationWhenInUseUsageDescription
if([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) {
[locationManager requestAlwaysAuthorization];
}
[locationManager startUpdatingLocation];
苹果拒绝应用程序与以下原因
2.16详情
您的应用程序宣布在UIBackgroundModes关键位置支持 你的Info.plist文件,但仍然没有宣布任何功能 需要持久的位置。声明支持位于 Info.plist文件中的UIBackgroundModes项的位置的应用程序必须具有需要持久位置的功能 。
具体而言,我们注意到,路线功能不需要 持久位置信息,因为它不包括 转向导航。
任何帮助将不胜感激,提前致谢。
我想说他们问为什么当你在后台时需要位置服务,因为你只有在审查组出现时才会在前台使用。 – Jef 2015-04-02 06:49:42
使用[locationManager requestWhenInUseAuthorization]代替[locationManager requestAlwaysAuthorization]可能会修复它! – 2015-04-02 06:59:19