Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Getting "You have problem with network connection" #2885

Open
renatomserra opened this issue Nov 21, 2024 · 0 comments
Open

[Android] Getting "You have problem with network connection" #2885

renatomserra opened this issue Nov 21, 2024 · 0 comments

Comments

@renatomserra
Copy link

renatomserra commented Nov 21, 2024

Description

Since upgrading to 12.15.6 i started getting this error in prod for a few users in my sentry.

Expected Behavior

Not to see the error

Screenshots

Only affects android but accross all versions}
Screenshot 2024-11-21 at 11 27 36

Environment:

  • react-native-iap: 12.15.6
  • react-native: 0.74.5
  • Platforms (iOS, Android, emulator, simulator, device): Android Real device

To Reproduce

This code runs only once on app load

  const getFlushedSubscriptions = () => {
    if (isSubEmpty) {
      getSubs({skus: Helpers.subscriptionSkus});
    }
  };

  useEffect(() => {
    if (connected) {
      if (Platform.OS === 'android') {
        flushFailedPurchasesCachedAsPendingAndroid().then(() => {
          getSubs();
        });
      } else {
        clearTransactionIOS().then(() => {
          getSubs();
        });
      }
    }
  }, [connected]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant