kyeonghwan
kyeonghwan

Reputation: 484

Android device does not connect to firebase DebugView

I'm trying to connect the device to DebugView. but, do not connected.

I referenced the DebugView document.

All I know is what is stated in this document.

Is there any other reason not to connect?

I simulated the following.

  1. Open the terminal. and entered a command.
  2. adb devices
  3. adb shell setprop debug.firebase.analytics.app com.example.myapp
  4. start the app(com.example.myapp).
  5. Check [Firebase -> Analytics -> DebugVIew]

If my question is not clear, talk to me please.

Upvotes: 8

Views: 12804

Answers (3)

Kimmi Dhingra
Kimmi Dhingra

Reputation: 2289

Make Sure your device and Laptop (While Making Connections with Firebase i.e. hitting command in CMD) is on same connection. I am facing this issue, as VPN is connected in my device, but not on laptop. When I connect VPN on laptop also. Device gets connected to Firebase debug view.

Steps to connect device

  1. Connect your device with laptop. Make sure your device Developer options should enable. And USB debugging on.
  2. Open CMD. Hit "adb devices". A list of devices will come If you get adb is not internal and external command. Then First Go to adb
    • How to Go to adb

      • Check path of SDK manager in your computer. (You can check it from android Studio=> Tools => SDK manager => Copy Path)
      • Lets say path is C:\Users\ABC\AppData\Local\Android\Sdk
      • Go to this path on CMD
      • Then write cd platform-tools
      • Now write adb, it will work fine
  3. adb shell setprop debug.firebase.analytics.app [your_app_package_name]

What will be your app package name

  • If you are not using any build variant
    Copy package name from manifest file. Under application tag
  • If you are using build variant Copy applicationId from your build.gradle file Lets say: Your applicationId is: com.abc.myApp And you are using two build variant
    • develop
    • production

Then command will be:

For develop build variant:
adb shell setprop debug.firebase.analytics.app com.abc.myApp.develop
For production build variant:
adb shell setprop debug.firebase.analytics.app com.abc.myApp.production

Upvotes: 1

anurag_dake
anurag_dake

Reputation: 1148

I tried following steps and its working for me

  1. Run your app in debug mode
  2. Goto Developer Options -> Select debug app -> Select

You will see your device listed in Firebase DebugView

Upvotes: 6

Thomas Meinhart
Thomas Meinhart

Reputation: 689

Looks like there is a problem with Firebase DebugView. It doesn't work on me either.

Upvotes: 9

Related Questions