For deeper troubleshooting, a developer can enable verbose logging, and execute the developer version of the same app on an iOS or Android device.
Verbose logging records more information than the usual logging mode. Remember to enable it only for troubleshooting, because larger log files can slow down performance.
To enable verbose logging, perform the following steps:
- Edit
MceConfig.json
in the project, and ensure you have setloglevel
toverbose
andlogfile
totrue
. - Delete the app from the test device, if present.
- Build, execute the app, and recreate the scenario on the device.
- Capture the full execution log.
- On iOS, capture the log from
Xcode
console, or extract the log file from the device. - On Android, capture the log from
logcat
, or extract the log file from the device.
- On iOS, capture the log from
- Zip the execution log, and
MceConfig.json
, and attach to a support ticket for troubleshooting issues. - Disable verbose logging.
Extracting verbose SDK logs from development devices
If your device scenario cannot be recreated with the device connected to Xcode (in case of iOS) or Android Studio (in case of Android), you can extract verbose SDK logs from development devices.
To extract verbose SDK logs on iOS, perform the following steps:
- Go to Xcode > Windows > Devices & Simulators.
- Select Devices.
- Select your app from the installed apps.
- Tap the Settings icon, and select the Download container.
- Tap and hold the resulting container, tap Show Package Contents, and navigate to
- App Data > Documents for verbose SDK logs
- Library > {app bundle id} for SDK sqlite DBs and plist settings
To extract verbose SDK logs on Android, navigate to:
<application cache folder on sdcard>/acoustic-mobile-push-android-sdk/logs/
Comments
0 comments
Please sign in to leave a comment.