Geofence

Info
Location-based service that triggers events when a device enters a specific area.

Ocamba requires location permission for this feature to work, so the user developer needs to ask for it.

To support geofences for iOS:

  • Your integration must support background push notifications.

  • OcambaHoood Geofences must be enabled through the SDK. They are not enabled by default.

OcambaBuilder(apiKey: "activation-code").geofence().push().build()

Notify Ocamba on geofence event:

OcambaHoood.sendLocationEnter(region:CLRegion)

Notify Ocamba on geofence event:

OcambaHoood.sendLocationLeft(region:CLRegion)
On This Page