appodeal / Appodeal-Flutter-Plugin

Official Flutter Plugin that adds Appodeal SDK support to your Flutter application.
https://pub.dev/packages/stack_appodeal_flutter
Apache License 2.0
18 stars 3 forks source link

Call validateInAppPurchase with a build distributed via Firebase app distro doesn't execute any callbacks #34

Closed PickleCubeSoftwareLtd closed 1 year ago

PickleCubeSoftwareLtd commented 1 year ago

Steps to Reproduce

Call validateInAppPurchase with a build distributed via Firebase app distro.

Expected results: Validate the transaction successfully - it should be able to use the sandbox/test transactions on Google Play?

Actual results: The callbacks for either onInAppPurchaseValidateSuccess or onInAppPurchaseValidateFail are not called

I am trying to use a completer to aid with async calls that I make (this works for my custom server side validation by the way) Is there any way to submit a purchase without requiring Appodeal to verify it?

  final completer = Completer<bool?>();

  try {
    Appodeal.validateInAppPurchase(
      purchase: appodealPurchase,
      onInAppPurchaseValidateSuccess: (purchase, errors) {
        completer.complete(true);
      },
      onInAppPurchaseValidateFail: (purchase, errors) {
        completer.complete(false);
      },
    );
  } on Exception catch (exception, stack) {
    completer.complete(null);
  }

  return completer.future;
da2gl commented 1 year ago

@PickleCubeSoftwareLtd Hello. In-App purchase tracking will work only with connection with Adjust/Appsflyer. You can find more information about validateInAppPurchase here or native android doc and native ios doc. Tell me, do you use Adjust/Appsflyer to validate purchases?

For faster resolution of the following issues, you can also write to us in support in the chat directly in your personal Appodeal account or contact by email support@appodeal.com