V / FA: Processing queued service tasks: 1, then V / FA: Inactivity, disconnecting from AppMeasurementService

As you can see on the console output below, it usually takes 7-10 seconds to process a service and often fails to do so. This happens every time it starts.

Why is it taking so long? Is it because the service tries to connect several times before giving up? Also, what is actually the logic of this output?

Note. I do not have FirebaseAnalytics code in my application.

09-26 23:34:48.998 /package V/FA: Processing queued up service tasks: 1
09-26 23:34:54.009 /package V/FA: Inactivity, disconnecting from AppMeasurementService
09-26 23:34:57.357 /package V/FA: Activity paused, time: 89152495
09-26 23:34:57.383 /package V/FA: onActivityCreated

build.gradle (application)

//Firebase
compile 'com.google.firebase:firebase-core:9.4.0'
compile 'com.google.firebase:firebase-database:9.4.0'
compile 'com.google.firebase:firebase-invites:9.4.0'
compile 'com.firebase:geofire-android:2.0.0'
compile 'com.firebaseui:firebase-ui:0.5.1'
+10
source share
5 answers

" " ", AppMeasurementService" , , .

, , ; - , Firebase Analytics - , , - . , FirebaseAnalytics.

" " , () ; - . "onActivityCreated" , , .

, , , .

BTW, "adb logcat -v threadtime", .

+6

,

Inactivity, disconnecting from the service

, . Reason: You face this problem because in the background there are few-thread and the process is running in the android studio which uses the connection of firebase and your process not get the connection.

:

  • /.
  • "" Android.
  • Invalidatecasha/restart.

Android, . - .

.

0

. , firebase , . , . ,

<uses-permission android:name="android.permission.INTERNET" />

0

, , FireBase, :

{
  "rules": {
    ".read": true,
    ".write": true
  }
}

,

<uses-permission android:name="android.permission.INTERNET" />

,

0

, Apache - Android , ,
, , 10 . , -

- >> , - >> - >>

,

0

Source: https://habr.com/ru/post/1655892/


All Articles