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.

Can not getProducts iOS simulator

See original GitHub issue

Version of react-native-iap

4.4.3

Version of react-native

0.62.0

Platforms you faced the error (IOS or Android or both?)

iOS

Expected behavior

Get products information from apple server

Actual behavior

[Error: An SSL error has occurred and a secure connection to the server cannot be made.]

Tested environment (Emulator? Real Device?)

Emulator

Steps to reproduce the behavior

The product is created but not submited

        import * as InAppPurchases from 'react-native-iap';

        InAppPurchases.initConnection()
        .then( canMakePayments => {
            console.log(canMakePayments);
            return InAppPurchases.getProducts(['com.xxx.xxx.abo'])
        })
        .then(result => {
            console.log(result);
        })
        .catch(err => {
            console.log(err);
        })

canMakePayments is true

but getProducts catch with [Error: An SSL error has occurred and a secure connection to the server cannot be made.]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
anastelycommented, May 21, 2020

@ajouve I’m trying to use getAvailablePurchases() but in everytime i sign in in sandbox account i got this error

Cannot connect to iTunes Store And after research, i see this 😦 https://forums.developer.apple.com/thread/113343

So how you test in a simulator?

0reactions
socheat-leangcommented, May 20, 2021

Yes. How can you test on simulator?.🤔 is it possible?

Read more comments on GitHub >

github_iconTop Results From Across the Web

iPhone 14 simulator not loading SKProducts - Apple Developer
iOS 14 Simulator can't load SKProducts from the web, but you can add the StoreKit Configuration File and add your products there. This...
Read more >
Unknown error getting products react-native-iap - Stack Overflow
This bug occurs on ios Simulator, after hours and hours of search and no solutions, what you need to do is Running the...
Read more >
products not fetched on iOS - RevenueCat Community
Hi,. We are trying to implement in-app subscription on android and iOS. On Android it work but on iOS app return the error....
Read more >
[Solved]-React-Native-iap getProducts() returns empty array
Coding example for the question React-Native-iap getProducts() returns empty array. ... How do you hide the warnings in React Native iOS simulator?
Read more >
Troubleshooting: Cannot Deploy iOS App to iOS Simulator
Troubleshooting: Cannot Deploy iOS App to iOS Simulator. To resolve this problem, look at the following areas: Activate the iOS Simulator as your...
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