You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version Number of Plugin: 1.2.3.107
Device Tested On: Galaxy S3, Galaxy S6
Version of VS: Visual Studio Professional 2015 update 3
Version of Xamarin: 4.7.10.38
Steps to reproduce the Behavior
Purchase a auto-renew subscription with PurchaseAsync
try to purchase again, the google store will give an error that you already have it.
Expected Behavior
That we will receive the lastest inAppBillingPurchase
Actual Behavior
it will trigger an exeption in the purchase flow, with a PurchaseError.GeneralError error, and the message "7"
Code snippet
the request code 7 triggers an exception that prevent some of the internal code from being called. I think.
public static void HandleActivityResult(int requestCode, Result resultCode, Intent data)
{
if (PURCHASE_REQUEST_CODE != requestCode || data == null)
{
return;
}
int responseCode = data.GetIntExtra(RESPONSE_CODE, 0);
switch (responseCode)
{
case 0:
//Reponse returned OK
var purchaseData = data.GetStringExtra(RESPONSE_IAP_DATA);
var dataSignature = data.GetStringExtra(RESPONSE_IAP_DATA_SIGNATURE);
tcsPurchase?.TrySetResult(new PurchaseResponse
{
PurchaseData = purchaseData,
DataSignature = dataSignature
});
break;
case RESPONSE_CODE_RESULT_USER_CANCELED:
tcsPurchase.SetException(new InAppBillingPurchaseException(PurchaseError.UserCancelled));
break;
case RESPONSE_CODE_RESULT_SERVICE_UNAVAILABLE:
tcsPurchase.SetException(new InAppBillingPurchaseException(PurchaseError.ServiceUnavailable));
break;
default: // ----------------------HERE---------------------------
tcsPurchase.SetException(new InAppBillingPurchaseException(PurchaseError.GeneralError, responseCode.ToString()));
break;
}
}
The code in InAppBillingImplementation on Android: async Task PurchaseAsync, never gets to the case 7, so never returns the purchase.
Screenshotst
The text was updated successfully, but these errors were encountered:
Bug Information
Version Number of Plugin: 1.2.3.107
Device Tested On: Galaxy S3, Galaxy S6
Version of VS: Visual Studio Professional 2015 update 3
Version of Xamarin: 4.7.10.38
Steps to reproduce the Behavior
Expected Behavior
That we will receive the lastest inAppBillingPurchase
Actual Behavior
Code snippet
the request code 7 triggers an exception that prevent some of the internal code from being called. I think.
public static void HandleActivityResult(int requestCode, Result resultCode, Intent data)
{
The code in InAppBillingImplementation on Android: async Task PurchaseAsync, never gets to the case 7, so never returns the purchase.
Screenshotst
The text was updated successfully, but these errors were encountered: