Comments (7)
OK, I had to "prepare" the RNIap first. Sorry.
from react-native-iap.
@Symyon This is strange because nothing will happen in ios for prepare
method. This only affects android billing service to start. Maybe there could be some delay in ios payment to update your products.
from react-native-iap.
@dooboolab Sorry for the delay. And for the misunderstanding.
My question/issue is for iOS, but my comment with "prepare" is for Android.
So on iOS I am unable to consume my purchased items and for that reason I am unable to re-buy.
getAvailablePurchases() is an empty array.
For Android I also had the problem getting available purchases, but that was solved with "prepare".
I am still debugging the iOS issue, but any help will be appreciated.
Also on iOS is taking a huge amount of time to wait for the systems dialog (Are you sure to buy, You already bought/restoring etc). It is like 10-20 seconds. Than at some point they are all coming one after another for the action I did (e.g. taping more than one item to buy while app is waiting)
from react-native-iap.
I have the same issue. I was wondering if it had something to do with not calling finishTransaction or because I'm using a sandbox user.
One interesting thing is that if I try to re-purchase, I am alerted that I've already subscribed to the item in the past.
from react-native-iap.
hey @Symyon not sure if you figured it out... but for anyone else that needs help, the solution is to make sure you're not signed into a sandbox testing account. Once I signed into my real Apple account, getAvailablePurchases prompted me to authenticate correctly.
from react-native-iap.
Okay another update. So the problem came back and then I was able to make it work after I signed out of my apple account and signed back in as the sandbox. Something about signing in and out seems to reset it.
from react-native-iap.
If you use the Prepare method it will crash on release for Android fyi. I'm stuck now cache. Can't use prepare on release APK. Can't validate subscriptions.
from react-native-iap.
Related Issues (20)
- Unable to get product from testflight IOS HOT 2
- Previous request was cancelled due to a new request - iOS HOT 8
- [Android]: on `requestSubscription` getting payment page but parallelly it's throwing an error "Connection has been closed"
- Cannot restore purchase using currentPurchaseError listner
- Getting 21002 at time of verifyReceipt of iOS HOT 16
- currentPurchase from useIAP() is undefined HOT 2
- Even though I added iOS items, the products appear blank. HOT 1
- Typescript v5.5.4 makes iap hanging on iOS
- [Android] builds will likely break on RN 0.75 / Expo 52 HOT 2
- [IOS] After call getAvailablePurchases(), purchaseUpdatedListener triggered many times HOT 4
- Does getPurchaseHistory() return all the purchases of monthly subscription?
- Not able to pay with any other payment method
- Android In-App Purchases Failing: Unknown Error and Receipt Not Suitable HOT 2
- Need Clarification on Receipt Validation Without a Backend Using RNIap.validateReceiptAndroid()
- iOS: requestPurchase does not initiate new subscription\purchase HOT 7
- iOS: getProducts gets stuck on dev and TestFlight builds HOT 5
- Extra argument 'confirmIn' in call HOT 1
- Android device showing "The item you were attempting to purchase could not be found" HOT 2
- [Android] Unable to auto-initialise connection HOT 3
- [Android crash] java.lang.SecurityException - Not allowed to bind to service Intent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-iap.