diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 68975071..649af435 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -81,7 +81,11 @@
-
+
+
+
+
+
diff --git a/android/app/src/main/kotlin/com/cloud/diplomaticquarterapp/geofence/intent_receivers/LocationProviderChangeReceiver.kt b/android/app/src/main/kotlin/com/cloud/diplomaticquarterapp/geofence/intent_receivers/LocationProviderChangeReceiver.kt
new file mode 100644
index 00000000..9de0cd6f
--- /dev/null
+++ b/android/app/src/main/kotlin/com/cloud/diplomaticquarterapp/geofence/intent_receivers/LocationProviderChangeReceiver.kt
@@ -0,0 +1,32 @@
+
+
+package com.cloud.diplomaticquarterapp.geofence.intent_receivers
+
+import android.content.BroadcastReceiver
+import android.content.Context
+import android.content.Intent
+import android.location.LocationManager
+import android.util.Log
+import com.cloud.diplomaticquarterapp.geofence.GeofenceTransition
+import com.cloud.diplomaticquarterapp.geofence.HMG_Geofence
+import com.cloud.diplomaticquarterapp.geofence.PREFS_STORAGE
+import com.cloud.diplomaticquarterapp.utils.HMGUtils
+import com.cloud.diplomaticquarterapp.utils.saveLog
+import com.google.android.gms.location.GeofencingEvent
+
+class LocationProviderChangeReceiver : BroadcastReceiver() {
+ private val LOG_TAG = "LocationProviderChangeReceiver"
+ override fun onReceive(context: Context, intent: Intent) {
+
+ if (LocationManager.PROVIDERS_CHANGED_ACTION.equals(intent.action)) {
+ val pref = context.getSharedPreferences(PREFS_STORAGE, Context.MODE_PRIVATE)
+ pref.edit().putString("LOCATION_PROVIDER_CHANGE","YES").apply()
+
+ HMG_Geofence.shared(context).unRegisterAll { status, exception ->
+ val geoZones = HMGUtils.getGeoZonesFromPreference(context)
+ HMG_Geofence.shared(context).register(geoZones)
+ }
+ }
+ }
+
+}
\ No newline at end of file