【发布时间】:2014-11-10 09:31:55
【问题描述】:
我的应用是移动到商店的应用。 我有 28,000 家商店,我想利用 iOS 中嵌入的地理围栏技术。
我不知道该怎么做。每当用户靠近我的销售点时,我只需要在锁定屏幕上推送我的应用图标即可。
我看到可以在 iTunes Connect 主屏幕上上传区域文件 (.geojson)。但是除了提供这个文件之外,我是否需要在我的代码中支持路由,代码如下?
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
if ([MKDirectionsRequest isDirectionsRequestURL:url]) {
MKDirectionsRequest* directionsInfo = [[MKDirectionsRequest alloc] initWithContentsOfURL:url];
// TO DO: Plot and display the route using the
// source and destination properties of directionsInfo.
return YES;
}
else {
// Handle other URL types...
}
return NO;
}
【问题讨论】:
标签: ios app-store-connect geojson geofencing