react-native-iap icon indicating copy to clipboard operation
react-native-iap copied to clipboard

iOS 15 fails to fetch products.

Open arshad-slate opened this issue 2 years ago • 15 comments

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

arshad-slate avatar Oct 07 '21 15:10 arshad-slate

Any luck as i am facing the same issue in iOS 15 @andresordonezfm @arshad-slate ?

rkoshti avatar Oct 12 '21 05:10 rkoshti

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.

jblancoh avatar Oct 12 '21 07:10 jblancoh

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 avatar Oct 13 '21 22:10 darkhorse-coder

@darkhorse-coder I was reading about the problem in the apple forums, apparently it is a problem with iOS 15.

Check this 691663 688416

jblancoh avatar Oct 14 '21 02:10 jblancoh

@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.

jurvis avatar Oct 14 '21 04:10 jurvis

Any luck as i am facing the same issue in iOS 15 @andresordonezfm @arshad-slate ?

No Luck so far.

arshad-slate avatar Oct 14 '21 07:10 arshad-slate

I'm having the same problem on an iPad with iOS 15.0.1. It is a device in production environment

abeledovictor avatar Oct 15 '21 18:10 abeledovictor

I doubt this is a test flight issue. Please share any news if anyone solve the problem.

hyochan avatar Oct 16 '21 19:10 hyochan

I get this one https://discussions.apple.com/thread/253213723

hyochan avatar Oct 16 '21 19:10 hyochan

I had the same issue. Just update the Ios version from 15.0 to Ios 15.1 and it will work.

adeelcheeema avatar Oct 26 '21 14:10 adeelcheeema

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

erhanbicer avatar Oct 26 '21 14:10 erhanbicer

Update to 15.1 works for me

jblancoh avatar Oct 27 '21 02:10 jblancoh

Does it work on iOS 15.4 for you, guys?

meowofficial avatar Apr 14 '22 06:04 meowofficial

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.

JorenVos avatar Apr 16 '22 14:04 JorenVos

Does not work for me on TestFlight with iOS 15.4 and React Native 0.66.0. Works perfectly on dev build

ImersivDev avatar Apr 20 '22 15:04 ImersivDev

Please help us test the alpha version of 11.0.0 Migrates to storekit 2 that targets ios 15 and above

andresesfm avatar Sep 01 '22 23:09 andresesfm