question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS 15 fails to fetch products.

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
darkhorse-codercommented, Oct 13, 2021

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!

1reaction
JorenVoscommented, Apr 16, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS update and restore errors - Apple Support
iOS update and restore errors · Try these steps first · Choose your error number or message · Update the software on your...
Read more >
Why Won't My iPhone Update to iOS 15/16 - iMobie
It will fix any iPhone (including iPhone 14) update failed and restore the device to the latest iOS version.
Read more >
Common iOS 15 Problems and How to Fix Them | Digital Trends
Head to the App Store, and make sure that all updates have been applied to your apps. Developers may have released an update...
Read more >
12 Best Ways to Fix Unable to Install iOS 15 Error - TechWiser
iPhone users on various forums suggest that re-inserting the SIM tray fixed the iOS 15 not installing issue. To do so, simply remove...
Read more >
How to Fix Load Content Error in iOS 15 - Lifewire
If you're using iCloud Private Relay, you can get around the error by enabling Private Relay for the Wi-Fi network you're using. To...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found