Table of Contents
- Overview
- Xcode (Payment Device SDK for iOS)
- Android Studio (Payment Device SDK for Android)
- Troubleshooting
Overview
This article will act as a guide on how integrators can extract Mobile SDK logs from the most common iOS and Android IDEs - specifically, Xcode and Android Studio. The extracted logs are useful as a troubleshooting method, especially if your integration fails before being able to perform a TMS update (as ordinarily, SDK logs can be pulled via the TMS platform). This is particularly relevant for Tap to Pay SDK integrations, but can also be helpful for handling edge-case troubleshooting in regular SDK integrations.
Xcode (Payment Device SDK for iOS)
Please follow the steps below in order to access the SDK logs found on the iOS device itself.
- Open Xcode.
- Navigate to ‘Window’ then ‘Devices & Simulators’.
- Select your ‘Connected’ device in the left panel.
- In the main panel select your app from the ‘INSTALLED APPS’ list.
- Select the circle containing 3 dots, found below the ‘INSTALLED APPS’ list.
- Select ‘Download Container…’, and select ‘Downloads’ as the ‘Where’.
- In Finder navigate to ‘Downloads’, right click created the ‘.xcappdata’ file and select ‘Show Package Contents’.
- Navigate to AppData/Library/NMI/ChipDNA/logs.
- Open logs with TextEdit, or other compatible software.
Android Studio (Payment Device SDK for Android)
Please follow the below steps in order to access the SDK logs found on the Android device itself.
- Open Android Studio.
- Navigate to 'View', 'Tool Windows', then 'Device Manager'.
- Select the three dots next to your connected device within the Device Manager panel.
- Select 'Open in Device Explorer'.
- View the connected device's files in the Device Explorer, and open the folder 'logs' in the following location: data > data > com.creditcall.chipdnamobiledemo > files > NMI > ChipDNA > logs
- Open the logs with compatible software.
Troubleshooting
The extracted SDK logs may be useful for investigating issues you are experiencing with your integration. For further assistance with investigating these logs, you can provide the logs via email to NMI Support at support@nmi.com.