如何在Objective-C中实现基于地理位置的推送通知?

时间:2015-12-28 11:10:51

标签: ios objective-c push-notification geolocation apple-push-notifications

如何实施基于地理位置的推送通知?我已经提到了以下解决方案:How to use geo-based push notifications on iOS?

在上面的链接中,他们提供了基于本地通知的解决方案:

 UILocalNotification *localNotification = [[UILocalNotification alloc] init];
 localNotification.alertBody = locationData;
 localNotification.alertAction = @"Location data received";
 localNotification.hasAction = YES;
 [[UIApplication sharedApplication] presentLocalNotificationNow:localNotification];

但是如何实现地理位置呢? 例如:如果用户输入某个区域,则通过apns

推送通知

0 个答案:

没有答案