Closed dmitryusikriseapps closed 1 year ago
@dmitryusikriseapps I'm assuming you are calling initConnection
before, correct?
@dmitryusikriseapps I'm assuming you are calling
initConnection
before, correct?
Hey @andresesfm, that's correct.
And are you using hooks?
This is my proposed solution: https://github.com/dooboolab/react-native-iap/pull/2091
This has been released in 12.4.0
@andresesfm Thanks for the fix. It solves the issue on some devices, but it still not working as expected on the rest of the devices.
It works well on iPad Pro
as well as on MacBook (Mac Catalyst)
. But it doesn't work on the iPhone 14 Pro (ios 16.0.3)
or iPhone 14 Pro Max
.
I also noticed that the library changes the sandbox account to the default one, for example:
1) Go to settings
2) Sign in to the newly created sandbox account
3) Go to the app, and try to use the library (for example getAvailablePurchases
)
4) Back to settings, and check the sandbox account. It'll be replaced with the default one (your current apple id)
Thanks.
Same Problem
Description
Hey guys. Unfortunately, last week the subscriptions stopped working on iOS in production mode. We used the
8.0.8
version and didn't publish any updates. I assume it might be related to the latest iOS update. Then, I updated the library to the latest version and calledInAppPurchases.setup({ storekitMode: 'STOREKIT1_MODE' })
. Subscriptions are working well when I build the application locally and test them with a sandbox user. On the other hand, when I deploy the application to the TestFlight, they stopped working, and bothgetAvailablePurchases
andgetPurchaseHistory
don't return any response, they are just executed without any response for infinite. I also checked the documentation, and how to migrate to the latest versions and I noticed that the library supportsSTOREKIT2_MODE
now. It is required to implement it for the latest versions of the library, or it's possible to go ahead withSTOREKIT1_MODE
for now? I also noticed that the library doesn't prompt me to sign in when there aren't any sandbox users on the device like it was before.Will be really thankful, if you can help us to resolve the issue. We've temporarily opened the application for all the users, but we will lose all the revenue, so we have to resolve the issue as soon as possible.
Expected Behavior
Both
getAvailablePurchases
andgetPurchaseHistory
should return the response after some time.Environment:
To Reproduce Steps to reproduce the behavior:
1) Upload a test build to TestFlight. 2) Init the connection. 3) Try to call
getAvailablePurchases
orgetPurchaseHistory
. 4) There won't be any response.Additional Context