ONE-store / iap_v5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

If your code has other exceptions, we won't get a callback. This will get stuck in our process

tianxiatianshan opened this issue · comments

 void handleException(Handler handler, final PurchaseClient.ErrorListener listener, final Throwable throwable) {
        if (handler != null && listener != null && throwable != null) {
            handler.post(new Runnable() {
                public void run() {
                    if (throwable instanceof RemoteException) {
                        listener.onErrorRemoteException();
                    } else if (throwable instanceof PurchaseClient.NeedUpdateException) {
                        listener.onErrorNeedUpdateException();
                    } else if (throwable instanceof PurchaseClient.SecurityException) {
                        listener.onErrorSecurityException();
                    } else if (throwable instanceof PurchaseClient.IapException) {
                        listener.onError(((PurchaseClient.IapException)throwable).getResult());
                    }

                }
            });
        }
    }

I have already encountered this problem now.

launchPurchaseFlowAsync onError, IapResult: 1005 입력하신 라이센스 키가 유효하지 않습니다
What is the reason?

I'm sorry for being late. The gitHub mail is blocked our email system...
The above cases are all case of the checked exception of SDK.
Our checked exceptions are all that above.