After the integration of the SDK in your App, it’s time to test that Proximity is working.
To do so:
- Enable Wi-Fi, Bluetooth and Mobile Data.
- Install your App on your device.
- Open your App.
- Accept permissions:
- iOS: Background App refresh active, Location set to Always.
- Android/Cordova: Make sure it requests fine location and it’s set to Balanced or High Accuracy on the OS.
- Log into the console and set a Geofence around you.
- Go to Places.
- Create a New Place.
- In Geolocation, click on the map to create a Geofence.
- Save the geofence.
- Go to Beacons and click New Beacon:
- Add a Beacon name.
- Select the appropriate Beacon provider (if not in the list, select Other Provider).
- Add the UUID, Major and Minor.
- Save Changes.
- Optional: edit location if you want the beacon to be geolocated.
- Go to Apps > Your App > Campaigns and create a new Proximity campaign.
- Select a wide range of dates.
- Leave all days selected on the scheduler.
- Make sure the hour intervals goes from 0 to 24.
- Make sure the Segment is set for All Users.
- Save Campaign and you’ll be sent to Experiences.
- Click on New Experience.
- Select the Message and add a “Hello World!” to the text box.
- Select Place or Beacon.
- On trigger options, select On Enter.
- Now select the Place you created or the Beacon you added.
- Select the cool down time as one minute. Note: It is not recommended to set it to No cooldown. For testing one minute is considered adequate.
- Activate the experience.
- Save the experience.
- Now enable the Campaign by using the slider in the main Campaigns page.
- Once done, the Campaign information will synchronize with the SDK. This requires a functioning internet connection on the device.
- Once the settings are synced, the location engine will have the geofence coordinates and beacon Identity and will use them to trigger the Campaign.