react-native-iap
react-native-iap copied to clipboard
iOS 15 fails to fetch products.
Please use Discussion board if you want to get some help out of it. Please report issue if there is a bug.
Version of react-native-iap
react-native-iap 7.3.0
(tried in 7.5.0 also)
Version of react-native
react-native: 0.64.0
Platforms you faced the error (IOS or Android or both?)
iOS, version 15.0
Expected behavior
getSubscriptions
call should populate subscriptions
(useIAP
)
Actual behavior
-
getSubscriptions
will never trigger callback. - In the log I am getting ->
Background Task 88 ("SKProductsRequest"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
Looks like an iOS 15 related issue.
Tested environment (Emulator? Real Device?)
Real Device
Steps to reproduce the behavior
- Install app in the device which already has an expired device (Not sure about fresh install)
-
currentPurchase
will get populated with older purchase details. - Quit the app and try again. No product will be fetched,
getSubscriptions
will continue forever. - At this time TestFlight app turns into
renew
status.
Refer threads
- https://developer.apple.com/forums/thread/691663?login=true
- https://developer.apple.com/forums/thread/688416?login=true
Any luck as i am facing the same issue in iOS 15 @andresordonezfm @arshad-slate ?
Any luck as i am facing the same issue in iOS 15 @andresordonezfm @arshad-slate ?
I was able to make it work by rebooting the device and changing the sandbox ID.
The issue is not resolved yet but this work for my testing.
Definitely the same for me.
I can't get available purchases and subscriptions from getSubscriptions
and getAvailablePurchases
.
What is the main reason? react-native-iap
version problem or any other things?
Needed help!
@darkhorse-coder I was reading about the problem in the apple forums, apparently it is a problem with iOS 15.
@darkhorse-coder @jblancoh I swapped my app's implementation for expo-in-app-purchase
and encountered the same issue (iOS 5.0.2). I doubt it is a react-native-iap
-specific issue.
Thankfully I had another test device that is still on iOS 15.0. Things still work there. Not sure why.
Any luck as i am facing the same issue in iOS 15 @andresordonezfm @arshad-slate ?
No Luck so far.
I'm having the same problem on an iPad with iOS 15.0.1. It is a device in production environment
I doubt this is a test flight issue. Please share any news if anyone solve the problem.
I get this one https://discussions.apple.com/thread/253213723
I had the same issue. Just update the Ios version from 15.0 to Ios 15.1 and it will work.
If no product arrives, you probably haven't completed the tax contract. You have to fill out the tax form in the agreements section. After your tax form is active, products start to arrive
Update to 15.1 works for me
Does it work on iOS 15.4 for you, guys?
The promise is not resolving at all. React Native 0.66.4 / iOS15.4
import { useIAP } from 'react-native-iap';
getSubscriptions(['MONTHLY']).then(() => {
console.log('Done');
}).catch(() => {
console.log('Error')
});
Done
or Error
is never logged.
Does not work for me on TestFlight with iOS 15.4 and React Native 0.66.0. Works perfectly on dev build
Please help us test the alpha version of 11.0.0 Migrates to storekit 2 that targets ios 15 and above