36

I face this problem in two android projects . In one i was trying to retrieve data from Firebase into Recyclerview and in onother i was trying to login using phone number but in both cases logcat is showing V/FA:

 Inactivity, disconnecting from the service
Wahdat Jan
  • 3,988
  • 3
  • 21
  • 46
  • 3
    The "FA" in the log messages stands for Firebase Analytics. These are informational messages and are not an indication of an error. If you are experiencing problems in your apps, they are caused by something else. – Bob Snyder Sep 06 '17 at 18:10
  • Every project connected to firebase showing same message in logcat – Wahdat Jan Sep 06 '17 at 18:12
  • @BobSnyder now how to solve this issue? – Wahdat Jan Sep 07 '17 at 03:26
  • 1
    There is nothing to fix. There is no problem. When Firebase Analytics has not events to report, it disconnects from the reporting service. It reconnects later when it has events to report. Ignore the message. – Bob Snyder Sep 07 '17 at 03:49
  • @bobsynder sir actually i am developing currently two apps where in both the projects i am retrieving data from firebase database into recyclerview but app shows blank screen and gets crashed and in the logcat i get the message inactivity disconnecting from the service. – Wahdat Jan Sep 07 '17 at 05:12
  • The crashes you are experiencing are caused by something else. You should post another question showing the stack trace for the crash. – Bob Snyder Sep 07 '17 at 12:46
  • check my answer https://stackoverflow.com/questions/39713528/v-fa-processing-queued-up-service-tasks-1-followed-by-v-fa-inactivity-discon – L.Petrosyan Jun 07 '18 at 18:15
  • Just by restarting simulator solved this issue for me, It happens when simulator switch network connection. – Shrawan Jan 24 '19 at 16:16

1 Answers1

19

Inactivity, disconnecting from the service

You Need to follow few steps to remove this problem. 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.

Steps:

  1. Uninstall the app from your mobile/emulator.
  2. Then go to the File option in the main menubar in the android studio.
  3. Then click on Invalidatecasha/restart.

It takes few mints and restarts you android studio and that error is gone. Because all the backend thread and process are closed.

Happy Coding.

Sohaib Aslam
  • 1,245
  • 17
  • 27
  • 31
    this didn't help ! – shadygoneinsane Apr 20 '18 at 11:54
  • 6
    it didn't work for me too. – Riddhi Shah May 08 '18 at 05:49
  • 4
    It didn't work for me too... I also lost my local history – Philipos D. May 14 '18 at 11:13
  • 2
    it mean your problem is generated by another cause not due to the background thread , so re-check the all listener's in your app careful. if you use one listener depend into another listener then just try to make it independent – Sohaib Aslam May 15 '18 at 08:44
  • check my answer guys https://stackoverflow.com/questions/39713528/v-fa-processing-queued-up-service-tasks-1-followed-by-v-fa-inactivity-discon – L.Petrosyan Jun 07 '18 at 18:16
  • seems NOT working – Ben Jun 08 '18 at 06:42
  • @Ben this error is generated due to a lot of reasons and there are a lot of possible solutions according to the problem occur. It is one of the possible solution, which occur due to the backend thread. – Sohaib Aslam Jun 08 '18 at 17:15
  • Hello everyone, frankly speaking you guys don't need to make any changes in code. follow these steps and after some time try connecting firebase through app it will work for sure.... i tried code changes which didnt worked and again i revert back to original after that followed these steps again and got worked...its because of firebase thread running in android studio.... – Nikhil Lotke Jun 15 '18 at 07:04
  • Hello everyone, frankly speaking you guys don't need to make any changes in code. follow these steps and after some time try connecting firebase through app it will work for sure.... i tried code changes which didnt worked and again i revert back to original after that followed these steps again and got worked...its because of firebase thread running in android studio.... – Nikhil Lotke Jun 15 '18 at 07:07
  • 9
    NOT working at all. – Ben Jul 19 '18 at 03:26
  • I even tried restarting the computer and it does not work for me. – Jaime Montoya Oct 01 '19 at 11:27
  • This broke down my code!!! Do not try this solution. – Beats2019 May 06 '20 at 22:24
  • This worked for me only the first time. After that issue is still there :( – Azizjon Kholmatov Jun 07 '20 at 10:53
  • I have even tried "./gradlew uninstallAll". But It didn't help – Sanatbek_Matlatipov Jun 22 '20 at 22:24
  • This worked for me :) Thanks! – Esh200111 Dec 03 '20 at 19:22
  • I am using Flutter. It worked for me. I faced this problem after coming back to manual installation after trying to swtich to the FlutterFire CLI (they didn't say it didn't work for Analytics on Android at the time...). I had to re-use the google-serivces.json etc. Probably a cache problem. – leb1755 Jan 21 '22 at 09:16
  • This is not a solution. This is just an temporary solution for development. – c-an May 22 '23 at 02:12