You can debug the Creatio mobile app in the following ways:
- using the mobile app installed on a mobile device
- using the mobile app emulator created in Android Studio
Debug the Creatio mobile app installed on a mobile device
- Contact Creatio support (support@creatio.com) to receive an *.apk file for debugging.
- Install the mobile app on your mobile device.
- Launch the mobile app on the mobile device.
- Connect the mobile device to your PC via USB.
- Open Google Chrome on the PC.
-
Open the Inspect with Chrome Developer Tools tab. To do this, enter the URL below in the browser address bar.
This opens the Devices tab that contains the list of connected devices. The link to Creatio mobile app is com.creatio.mobileapp.
-
Display the connected device (optional).
If the connected device is missing from the Devices tab, check the device authorization. To do this:
- Download Android Debug Bridge (adb).
-
Open the command line and go to the directory that contains the adb.exe file. To do this, run the command below.
-
Open the list of connected devices. To do this, run the command below.
-
If you see unauthorized status for the mobile device, authorize the device. To do this:
- Disconnect the USB cable.
- Revoke USB debugging permissions on your device.
- Reconnect the USB cable.
- Set Trust this computer? to "Yes".
- Click the inspect link under the link to Creatio mobile app. This opens an app debugging window.
-
Open the Sources tab and debug the mobile app. Most of the classes are in the android_asset/www/js/terrasoft-all-combined.js file.
Debug the Creatio mobile app using the mobile app emulator created in Android Studio
- Set up a mobile app emulator in Android Studio. To do this, follow the instructions in a separate article: Launch the Creatio mobile app emulator created in Android Studio.
- Repeat steps 5–9 of the procedure to debug the Creatio mobile app installed on a mobile device.