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

[expo-in-app-purchases] connectAsync() never resolves on Android if not connected to Play Store #17830

Closed
arcln opened this issue Jun 13, 2022 · 3 comments

Comments

@arcln
Copy link

arcln commented Jun 13, 2022

Summary

InAppPurchases.connectAsync() never returns when not connected to Play Store.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

bare

What platform(s) does this occur on?

Android

SDK Version (managed workflow only)

45.0.0

Environment

expo-env-info 1.0.3 environment info:
System:
OS: macOS 12.4
Shell: 3.3.1 - /opt/homebrew/bin/fish
Binaries:
Node: 16.13.0 - /usr/local/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 8.1.0 - /usr/local/bin/npm
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8609683
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
npmPackages:
expo: ^45.0.0 => 45.0.5
react: 17.0.2 => 17.0.2
react-native: 0.68.2 => 0.68.2
Expo Workflow: bare

Reproducible demo

  • Start a fresh Android emulator, I used a Pixel 4 on API 31.
  • Call InAppPurchases.connectAsync()
  • Notice it never resolves
  • (optional) Open Play Store app and login
  • (optional) Re-call InAppPurchases.connectAsync(), notice it works as expected.
@arcln arcln added the needs validation Issue needs to be validated label Jun 13, 2022
@brentvatne
Copy link
Member

i'd recommend trying out revenuecat's integration for a more fully featured option than what is available as of june 2022 in expo-in-app-purchases. we aren't actively working on this module at the moment so you will likely have more success with revenuecat's library. see this post for more info: https://www.revenuecat.com/blog/using-revenuecat-with-expos-managed-workflow/

@brentvatne brentvatne added Android and removed needs validation Issue needs to be validated labels Jun 28, 2022
@github-actions
Copy link
Contributor

This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

@github-actions github-actions bot added the stale label Sep 26, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2022

This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.

@github-actions github-actions bot closed this as completed Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants