enableGeofenceMessaging

Enables geofence messaging. This will only succeed if:

  • setGeofencingEnabled (boolean)} was set to true
  • The device has GPS hardware
  • The play-services-location dependency was included in your build
  • The ACCESS_FINE_LOCATION permission has been granted.
  • The ACCESS_BACKGROUND_LOCATION permission has been granted on Android Q+.
  • The device has the supported play services version.

Return

True if geofence messaging was successfully enabled