GPS and Time Activated Push Notifications
-
27-05-2021 - |
Вопрос
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!
Решение
This probably what you want:
- (void)performSelector:(SEL)aSelector withObject:(id)anArgument afterDelay:(NSTimeInterval)delay
More info in the docs.
Не связан с StackOverflow