Demo (App in background):
Demo (App in foreground):
-
Install the app on the device.
-
Launch the app and tap on Trigger Local Notifications Button.
-
Keep the app in foreground/ background/ kill the app.
-
Move out of the initial location to around 300-400 metres and get back to initial location.
-
That's it. You see the UILocalNotification pop ups as shown in the attached GIFs.
Key : Privacy - Location Always and When In Use Usage Description
Value : Need your location to trigger notifications
Key : Privacy - Location When In Use Usage Description
Value : Need your location to trigger notifications