If your code has other exceptions, we won't get a callback. This will get stuck in our process
tianxiatianshan opened this issue · comments
tianxiatianshan commented
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());
}
}
});
}
}
tianxiatianshan commented
I have already encountered this problem now.
LBCross commented
launchPurchaseFlowAsync onError, IapResult: 1005 입력하신 라이센스 키가 유효하지 않습니다
What is the reason?
powerji2001 commented
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.