iphonepush-notificationgpsgps-time

GPS and Time Activated Push Notifications


I'm trying to send push notifications to users when they are at a specific location for more than 5 min. I know that you can send push notifications when a user is at a specific location, but how exactly do I "delay" the push notification 5 min?

Many thanks!


Solution

  • This probably what you want:

    - (void)performSelector:(SEL)aSelector withObject:(id)anArgument afterDelay:(NSTimeInterval)delay
    

    More info in the docs.