Skip to content

Smaller Geofences

In some geofencing use cases, you may wish to deploy smaller geofences upto 10 meters. These smaller geofences can be applied in low and medium density areas using another SDK module.

Enterprise feature

This is an Enterprise feature. Please contact your account support to enable this on your account.

Pod Install

There is an additional Pod required. Put the following text in your Pod.file.

platform :ios, '8.0'
use_frameworks!
target 'Your-target-name' do
    pod 'PulseSDK/Core', :git => 'https://bitbucket.org/pulseid/pulse-ios-release.git', :tag => "3.11.1"
    pod 'PulseSDK/IG', :git => 'https://bitbucket.org/pulseid/pulse-ios-release.git', :tag => "3.11.1"
end

This SDK module uses additional sensor and movement data to detect geofences smaller than 100 meters. Due to additional sensor usage and processing, this feature consumes more battery in comparison.

Activate Feature


// Import PulseIG module in the `AppDelegate.h` file.
@import PulseIG;
// simply put [PulseIG sharedClient]; after startMonitoring in AppDelegate.m file
[[PulseSDK sharedClient] startMonitoring];
[PulseIG sharedClient];
// Import PulseIG module in the `projectname-Bridging-Header.h` file.
@import PulseIG;
// simply put PulseIG.sharedClient() after startMonitoring in AppDelegate file
PulseSDK.sharedClient().startMonitoring()
PulseIG.sharedClient()

Background Modes

If you wish to use higher accuracy geofencing and deploy smaller geofences, you also need to select Location updates so that the SDK can use GPS in the background for higher accuracy and sensor data.

Quickstart Capabilities

App Store submission

If you choose Location updates above, Apple requires you to clearly explain why background location is required for this app. You can add explanation similar to below at the end of your App's description:

This app uses background location to (reason here). Continued use of GPS running in the background can dramatically decrease battery life. (app name) does not use GPS in the background all the time, thus consuming very little battery.