SDK Error Codes
A list of errors returned from the SDK is as follows:
- Error codes where the sentence "Unnecessary to handle this error especially" is written on the Recommended action column mean that it is not necessary to handle the error code and to separate something out especially.
- Error codes where the "Common" is written on the "Method which returns the error" column may be returned from all methods. In the other hand, error codes where other method name is written (ex, Initialize) may be returned from only the method.
| Code | Method which returns the error | Description | Recommended action |
|---|---|---|---|
| -1XXXX series (Unknown) | |||
| -10001 | Common | Unknown Error | Unnecessary to handle this error especially. |
| -20 XXX series (background process related in SDK) | |||
-20001 | Common | Could not connect to the background process from the SDK because the AndAppHelper/AndAppDevHelper process was not started and so on. | Encourage the user to shutdown the application and to restart the application via the AndApp client. |
| -21 XXX series (background process related) | |||
| -21000 | Common | Communication with AndApp server failed. | If possible, display a message (ex. Please check the network environment) to the end user. |
| -21001 | Common | When an unexpected response was returned from the AndApp server. | Unnecessary to handle this error especially. |
| -21002 | Common | Communication with the server was successful but data in response was invalid | Unnecessary to handle this error especially. |
| -21003 | Common | Illegal parameter | Unnecessary to handle this error especially. |
| -21004 | Common | Background process internal error | Unnecessary to handle this error especially. |
| -21005 | Common | Attempted to connect from multiple processes with same clientId because multiple applications were launched. | In order to prevent this error, implement a process to prevent to launch multiple applications at the same time. |
| -21014 | Common | Connection error with a background process. | Unnecessary to handle this error especially. |
| -21015 | Initialize | There is a possibility that the binary has been tampered. | Encourage to reinstall to the end user. |
| -21050 | Initialize | When the SDK version is too old against the supportable SDK version of AndApp client. | Unnecessary to handle this error especially, if the application updates a SDK periodically and encourage to download the latest version for the end user. |
| -21051 | Initialize | When the AndApp client is too old against SDK version | Normally, this error is rarely encountered since AndApp clients are updated by an automatic update cycle earlier than the SDK. If it occurs, encourage to restart the AndApp client for the end user. |
| -21071 | Common | When a creation of the AndApp user is incomplete (This error will occur when executing the exe directly and calling initialize after switching the user.) | This error occurs when executing the exe directly which found by myself without the AndApp client has never been launched after switching the user. Normally, all users and applications are deleted at uninstalling. Therefore, the behavior above will never occur on a product environment. If this error occurs, encouraging to launch the application via the AndApp client (that is launching from the application shortcut) is recommended. |
| -21 XXX series (settlement related) | |||
| -21011 | RequestPurchase | Payment cancellation | It occurs in the case where the payment is canceled by the user's operation. Restore the status of before starting the payment. |
| -21012 | RequestPurchase | Payment failed (synchronize) | Although unnecessary to handle this error especially, need to restore the status of before starting the payment, as the same at cancelling a payment. |
| -21022 | RequestPurchase | Payment failed because of the existence of unused products. | Although unnecessary to handle this error especially, need to restore the status of before starting the payment, as the same at cancelling a payment. |
| -21013 | RequestPurchase | Payment failed (asynchronous) | Although unnecessary to handle this error especially, need to restore the status of before starting the payment, as the same at cancelling a payment. |
| -21022 | RequestPurchase | When trying to purchase ProductId which has not been consumed in ConsumePurchase | Start the payment process after executing the recovery process to complete the incomplete payment. |
| -21032 | RequestPurchase | The payment function is restricted | Although unnecessary to handle this error especially, need to restore the status of before starting the payment, as the same at cancelling a payment. Or, implement the process to start a payment process after confirming the Payment.IsBillingSupported property. |
| -21042 | RequestPurchase | Payment was tried in multiple windows | Although unnecessary to handle this error especially, need to restore the status of before starting the payment, as the same at cancelling a payment. In addition, an error message is displayed on another screen. Normally it is not necessary to implement to display a message. |
| -21 XXX series (related to SetInAppUserId / GetInAppUserId) | |||
| -21061 | SetInAppUserID | When the inAppUserId specified at executing the SetInAppUserId has already been linked to the player ID connected to the IdP. | In this case, the application cannot be launched. Therefore, back to the title page. |
| -21062 | GetInAppUserID | When the GetInAppUserId was executed without setting the inAppUserId linked to the player ID. | Handle this error, and call both the SetInAppUsrId and the inAppUserId. |
| -21063 | SetInAppUserID | When the inAppUserId specified at executing the SetInAppUserId was already linked to the player ID connected to other IdP. (Under AndApp client 1.1.1, in this case -21061 will be returned) | In this case, the application cannot be launched. Therefore, back to the title page. |
| -3XXXX series (SDK internal) | |||
| -30001 | Common | When some API which is not the initialize was executed before completing calling the initialize. | Revise the implementation method of API. |
| -30002 | Initialize | Initialize completed and initialize was executed again. | Revise the implementation method of API. |
| -30003 | Common | Invalid argument. | Revise the implementation method of API. |
| -30004 | Common | Response from a background process is invalid | Unnecessary to handle this error especially. |
| -30005 | Common | When the connection destination file of the AndApp client exists but can not be connected | Encourage the user to shutdown the application and to restart the application via the AndApp client. |
| -30010 | Common | When an unknown internal error occurs | Unnecessary to handle this error especially. |
Change log
- 2017/03/09
- With the AndApp client 1.1.1 release, error code addition
- 2016/12/9
- Since the item of error code -21000 was missing, they were added.
- The description content of the error code -21001 was incorrect so we fixed it.
- 2016/12/01
- We have added details of the recommended processing that you would like to do with the error code.
- We have described the explanation of the error code in detail.
- Since there were omissions of error codes - 21005, -21015, -21050, -21051, -21071, - 30010, it was added.
- 2016/11/19
- Since error codes -21032 and -21042 were added, they were added.
- 2016/11/02
- Added error code as AndApp client update
- 2016/09/17
- Created