registerGeofencesWithGooglePlayIfNecessary

fun registerGeofencesWithGooglePlayIfNecessary(context: Context, geofenceList: List<BrazeGeofence>, geofenceRequestIntent: PendingIntent)

Requests to register the given list of geofences with Google Play Location Services.

If a given geofence is already registered with Google Play Location Services, it will not be needlessly re-registered. Geofences that are registered with Google Play Location Services but not included in the given list of geofences will be un-registered.

If the given geofence list is empty, geofences will be un-registered and deleted from local storage.

Parameters

context

used by shared preferences

geofenceList

list of BrazeGeofence objects

geofenceRequestIntent

pending intent to fire when geofences transition events occur