Skip to content

Listener onPurchaseError returns "iap-not-available" #3138

@gimi-anders

Description

@gimi-anders

After upgrading react-native-iap to version 14.7.1 (from 12.16.4) we have started to see an error that we have not observed before.

We setup purchase listeners like this:

  useIAP({
    onPurchaseSuccess: onSubscriptionPurchase,
    onPurchaseError: onSubscriptionPurchaseError,
  });

The error-listener will just log the error, and we have been starting to see this error in our logs:

{
"code":"iap-not-available",
"message":"In-app purchases not available on this device"
}

Any ideas why this error has started to pop up after the upgrade to 14.7.1 (from 12.16.4)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ❓ questionFurther information is requested🙏 help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions