on 03 Jan 2023 02:42 AM
If you are not seeing data in the WebUI after running through the steps given in the "Get started with Android monitoring" section of the help docs, here are some ways to confirm that the steps you've taken are implemented correctly:
The first thing you want to check is that the code snippet that was copied from the WebUI (Application -> Mobile App -> Ellipsis (...) button -> Edit -> Instrumentation page -> Android tile -> See step 2 and step 3) is added to the top-level build.gradle file.
If this is code snippet is not added to the top-level build.gradle, instrumentation will not work.
Once you've confirmed that the code snippet is in the top-level build.gradle, you should enable debug logging so that we can see what is happening on the Android agent side via logcat in Android Studio. Please see our help docs and the screenshot below for an example of enabling debug logging:
Rebuild your application with the new debug logging setting added and run a test session on your test device or emulator. In the Logcat tab (CMD + 6 for Mac or Ctrl + 6 for Windows) do a search for type=m which will bring you to the response of the mobile beacon and validate that the communication between the Android Agent and the beacon forwarder (Cluster AG or OneAgent) is valid. You can then search for vv= and that line will show the key/value pairs that contain the captured data by the Android agent which is sent back to the beacon forwarder > Cluster to get correlated into the session. If you see these in your Logcat output, you should then see data in your WebUI after correlation is completed for the data that was sent. The following screenshot is from an old agent (and cluster) version. When the using a new agent and cluster version then the logs may look slightly different.
Some search terms that will be beneficial to look for in the debug Logcat output: