Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 434
kyeonghwan Avatar asked Jul 11 '18 04:07

kyeonghwan


People also ask

How do I enable debugview in Firebase Analytics?

To enable sending of DebugView data on a connected Android test device for a configured Firebase Analytics app, execute the following command: This behavior persists until you explicitly disable it by executing the following command: adb shell setprop debug.firebase.analytics.app .none.

How do I connect to Firebase as an app?

Click Tools > Firebase to open the Assistant window. Click to expand one of the listed features (for example, Analytics), then click the Get Started tutorial to connect to Firebase and add the necessary code to your app.

How to enable the debug mode in ADB?

To Enable the debug mode we need to execute the following command. adb shell setprop debug.firebase.analytics.app <package_name> Where to write this command?

What is debugdebugview?

DebugView enables you to see the raw event data logged by your app on development devices in near real-time.


3 Answers

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

like image 121
Thomas Meinhart Avatar answered Oct 11 '22 00:10

Thomas Meinhart


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

like image 5
anurag_dake Avatar answered Oct 10 '22 23:10

anurag_dake


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

like image 1
Kimmi Dhingra Avatar answered Oct 11 '22 01:10

Kimmi Dhingra