0

How to implement geo location based push notifications ? I have been referred to the following solution: How to use geo-based push notifications on iOS?

In the above link they have given local notification based solution:

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

But how to implement it for geo location? for example: if user enters some area then push notification via apns

ryantxr
  • 4,119
  • 1
  • 11
  • 25
Sudheer Kolasani
  • 283
  • 5
  • 28
  • 1
    Geographic-based notifications are local notifications, they are not linked to push (remote) notifications, and do not use APNS. Push notifications come from a server, while geographic-based notifications are triggered locally by the phone knowing it's own position. If you want your server to be aware of the location, you need to implement background location updates and send the data to your server yourself, there is no standard API for this. – jcaron Dec 28 '15 at 12:36
  • @jcaron i.e, i have to update user location ,based on updated location i have to send push notification – Sudheer Kolasani Dec 28 '15 at 12:53

0 Answers0