Skip to content

Saving logs on an end user’s device#

With LUNA ID, you can optionally save log files on an end user’s device. This feature is available in LUNA ID for Android v. 1.3.3 and later.

Important: This feature is available in LUNA ID for Android only.

To get log files and save them on your device:

1․ Enable logging in LUNA ID: LunaID.showCamera(logToFile = true).

Every call of showCamera with logToFile set to true will create a log file with a session of getting the best shot on your mobile device.

2․ Get the log files by calling Context#getFilesDir(). The files are stored in the logs folder inside your app’s private folder. For details, see getFileDir.

We do not provide a solution for getting log files from your device. You need to realize it in your code by yourself. That is, you will need to add logic for getting these log files and sending them, for example, to your endpoint or to your mail.

We recommend that you do the following to get logs from your device:

1․ In your app, realize hidden camera launching with collecting of logs. For example, you can do it by long-tapping the camera button or via the hidden developer menu in the release build.

2․ When a user has a problem getting the best shot, you get the logs and forward them to our Support Team.