Can not getProducts iOS simulator
See original GitHub issueVersion 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:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ajouve I’m trying to use
getAvailablePurchases()
but in everytime i sign in in sandbox account i got this errorSo how you test in a simulator?
Yes. How can you test on simulator?.🤔 is it possible?