mapbox / dash-android-examples

Other
3 stars 1 forks source link

Enable Bug Button #46

Closed alexzatsepin closed 1 month ago

alexzatsepin commented 1 month ago

How to report issue using UXF

  1. Enable Bug button via Configuration API:

    debugSettings {
       // To show Bug Button in UI
       showSendDebugInfoButton = true
       // To show option in the setting to disable/enable Bug Button
       showDisplaySendDebugInfoButtonOption = true
    }
  2. As the issue is noticed tap ASAP the Bug button. It will save a debug bundle zip on the file system at this absolute path: /data/user/<user_id>/<your_app_package_name>/files/debug_bundle.zip

  3. Pull the bundle zip via adb pull command. (P.S. this might be a tricky moment for a regular android devices, and some additional commands to grant additional rights for the user might be needed)

  4. Send the text description (steps to reproduce and conditions) of the issue to the Mapbox team and attach a debug bundle zip.

https://github.com/user-attachments/assets/5d7fe073-b273-4a11-bd5b-d65cfbcdf86a

VysotskiVadim commented 1 month ago

Pull the bundle zip via adb pull command. (P.S. this might be a tricky moment for a regular android devices, and some additional commands to grant additional rights for the user might be needed)

"Device explorer" from Android Studio was always able to access app's internal directory with no problem, while using adb via terminal requires run-as com.your.packagename