How to get full local logs when issues occur on Android client
Solution
Reproduce the issue and follow these steps to collect a complete log.
Log collection steps:
-
Connect your phone to a computer and keep the screen on.
-
Uninstall and reinstall the app.
-
In the command window, enter
adb logcat -v time > xxxx.log
(run this before starting the app, otherwise the logs may be incomplete). -
Start the app and perform relevant operations until the issue occurs.
-
For push-related logs, wait 2-3 minutes after initialization completes before ending log collection.
-
Press
ctrl + c
to end log collection. -
xxxx.log
will be saved in the current directory.
Note: Avoid field filtering to keep the logs as complete as possible.
Schematic diagram
More support
If you have any questions, feel free to submit a ticket.