Logging on Android
On Android, you have the ability to enable logging and email the output to yourself or firstname.lastname@example.org for further analysis.
truebefore creating a new instance of the
- Somewhere in your app, add a control (button, menu item, custom gesture recognizer, etc) that will call
- Deploy your app and authenticate a user
- When you encounter a problem, trigger the widget
- This will open the email client on the device with several attachmeents, including the logs, a screenshot, and a copy of the local Layer database
- Please fill in the body details in that email with the following information:
- An existing ticket number if you’ve opened a ticket with us before
- A description of the issue you’re trying to address
- Detailed steps to reproduce
- Any other relevant information
- Send the email to email@example.com
- You will receive an email reply confirming that we’ve received your ticket. This will contain a Ticket ID. Please use that ID as reference in any further communication regarding this issue.
If you are encountering problems in a Release build, or if there is another reason you cannot modify the source code to enable logging, you can turn on verbose logging from the console:
adb shell setprop log.tag.LayerSDK VERBOSE.