An unknown or unexpected error has occured - react-native-iap
See original GitHub issueGetting error after login to apple for in app purchase payment
Err. message - An unknown or unexpected error has occured. Please try again later.
Err.Code - E_UNKNOWN
First I am loading product via product id then calling for payment
async buyplan() {
try {
await RNIap.prepare();
const products = await RNIap.getProducts([${this.state.productid}
]);
await RNIap.buyProduct(this.state.productid).then(purchase => {
Toast.show(“Payment Successfully Completed”);
}).catch(err => {
// Toast.show(“Payment Transaction Failed”);
console.warn(err);
alert(err.message);
})
} catch (err) {
console.warn(err);
}
}
Please help me out from this. Thanks in advance.
Issue Analytics
- State:
- Created 5 years ago
- Comments:30 (13 by maintainers)
Top Results From Across the Web
React Native "An unknown error occurred" by Apple review
I get no error when testing iap in ios but Apple Review gets "An unknown error occurred" when they try to call requestPurchase...
Read more >requestPurchase return error "An unknown or unexpected ...
I have get error response in the catch An unknown or unexpected error has occurred . Please try again later. but payment successfully....
Read more >Full Guide How to Handle StoreKit Errors – SKError iOS Apps
This error SKErrordomain 0 return usually happens when an unknown or unexpected error has occurred. Usually, there is no need to take any...
Read more >Unknown error on getting products react-native-iap - Intecsols
I you are trying to implement react native iap purchase in React Native app without success and facing this error: error code: E_UNKNOWN....
Read more >Error Handling - RevenueCat
Problem : Indicates a network error occurred during the operation. Resolution: Make sure the device has an internet connection and try again. If...
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
@immohdali Can’t help you more than that. I’ve look into your code remotely more than an hour yesterday and told you how to improve your code in slack. It was not a bug or anything but just your immature coding skill. You need to solve your problem yourself. I can answer to your question and guide your coding like I’ve done yesterday but I won’t edit your code anymore. I’ve done this kind of thing lots of time and I know that it isn’t healthy. Won’t comeback to this issue either. Also, please see the example project and compare with yours too.
@dooboolab after 2 hours i will be at mac. if possible i will share you my mac control via TeamViewer. i hope you will be free
skype id - immohdali