Leanplum allows you to create custom geofences to be used for triggering push notifications and in-app messages. Make sure you have our location services set up in your app before using this feature.
iOS limits the number of locations that an app can save to 20, however, our SDK manages this for you by only storing the nearest 20 locations to each user's device at any given time. This way, you can have more than 20 locations saved in Leanplum, but your users will only have the 20 most relevant to them (i.e. the closest).
To create and use a geofence, do the following:
Select your message type and targets.
For a push notification, select Triggered locally as the delivery option, and select the User enters region or User exits region trigger. For an in-app message, select the User enters region or User exits region trigger as the Display When trigger.
Locally triggered push notifications do not work with our Quiet Hours feature. This is because the send is controlled by the local trigger, and not Leanplum's servers.
Updated 9 months ago