If an application has to shut down (because it is either terminating unexpectedly or it has detected a security problem), the application can exit and open the browser with a given URL. For more information, see Exit URL Launching on iOS.
List of error codes for shutdown reasons
If App Shielding shuts down the application and launches a web browser with a preconfigured URL to explain the problem to the user, one of the exit URL variable placeholders is %REASON%. The following table lists the %REASON% possible error codes for the shutdown.
Error Code Hexadecimal | Error Code Decimal | Description |
|---|---|---|
00 | 0 | Device is jailbroken. |
01 | 1 | Application is being debugged. |
03 | 3 | A screenshot of the application was taken. |
04 | 4 | An injected library was found in the process. |
05 | 5 | A hooking framework was found in the process. |
06 | 6 | A screen recording of the application was started. |
07 | 7 | iOS app running on macOS. |
08 | 8 | Running on emulator. |
09 | 9 | Running with Developer Mode enabled. |
The codes are provided as hexadecimal and decimal values. If the exit URL is configured and the app exits, when checking the URL to examine the %REASON% placeholder, it is provided as decimal value. When the app exits on security threats identified by App Shielding, when checking the corresponding logs via ADB or Android Studio, or reporting tools like Crashlytics, the error codes are provided as hecadecimal values.
For further analysis, please forward the error message to us by contacting OneSpan Support.