title: com.google.gms.google-services stops my geofencing
body: <p>I have such a problem I can't figure out how to solve it. I have a task to make geofencing + firebase token. Geofencing works well even in the background, but if I add com.google.gms.google-services it stops my geofencing in the background, I tried different versions but nothing works. Maybe someone had the same problem, help what you can., thank you! Here is my build.gradle.</p>
  <pre><code>/// 1
  
      buildscript {
          repositories {
              google()
              mavenCentral()
          }
          dependencies {
              classpath &quot;com.android.tools.build:gradle:4.2.2&quot;
              classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30&quot;
              classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
              classpath 'com.google.gms:google-services:4.3.10'  // Google Services plugin
              // NOTE: Do not place your application dependencies here; they belong
              // in the individual module build.gradle files
          }
      }
      
      allprojects {
          repositories {
              google()
              jcenter()
      
          }
      }
      
      task clean(type: Delete) {
          delete rootProject.buildDir
      }
  
  
     
  
      /// 2
      plugins {
              id 'com.android.application'
              id 'kotlin-android'
              id 'kotlin-kapt'
              id 'kotlin-parcelize'
              id 'com.google.gms.google-services'
              id 'com.google.firebase.crashlytics'
          }
          dependencies {
             //common
              implementation 'androidx.core:core-ktx:1.7.0'
              implementation 'androidx.appcompat:appcompat:1.4.0'
              implementation 'com.google.android.material:material:1.7.0-alpha01'
              implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
              implementation 'androidx.legacy:legacy-support-v4:1.0.0'
              testImplementation 'junit:junit:4.+'
              androidTestImplementation 'androidx.test.ext:junit:1.1.3'
              androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
          
              implementation(&quot;androidx.work:work-runtime-ktx:2.7.1&quot;)
              implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
              implementation 'com.squareup.picasso:picasso:2.71828'
              implementation 'com.alimuzaffar.lib:pinentryedittext:2.0.6'
              implementation &quot;org.jetbrains.kotlin:kotlin-reflect:1.5.0&quot;
          
              //network
              implementation 'com.google.code.gson:gson:2.8.7'
              implementation 'com.squareup.retrofit2:retrofit:2.5.0'
              implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
              implementation 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
              implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
              implementation 'io.reactivex.rxjava2:rxjava:2.2.5'
              
              //dagger
              kapt &quot;com.google.dagger:dagger-compiler:2.17&quot;
              implementation &quot;com.google.dagger:dagger:2.17&quot;
          
              //moxy
              implementation 'tech.schoolhelper:moxy-x:1.7.0'
              implementation 'tech.schoolhelper:moxy-x-androidx:1.7.0'
              kapt 'tech.schoolhelper:moxy-x-compiler:1.7.0'
              implementation 'com.github.orangegangsters:swipy:1.2.3@aar'
          
              //firebase
              implementation platform('com.google.firebase:firebase-bom:30.0.1')
              implementation 'com.google.firebase:firebase-crashlytics'
              implementation 'com.google.firebase:firebase-messaging'
          
              //locations
              implementation &quot;com.google.android.gms:play-services-location:18.0.0&quot;
              implementation 'com.google.android.gms:play-services-maps:18.0.0'
          
              //billing
              def billing_version = '4.1.0'
              implementation &quot;com.android.billingclient:billing-ktx:$billing_version&quot;
              implementation 'com.anjlab.android.iab.v3:library:2.0.3'
          
          }
  </code></pre>