Skip to main content
Solved

Error handling in React Native

  • 2 October 2024
  • 1 reply
  • 67 views

Forum|alt.badge.img+1

Hi,

We’re developing an app for iOS and Android with React Native. We want to use RevenueCat as payment provider. Our test with Android works fine. But on iOS an error occurred:

Error 23 on iOS

We understand that something in our configuration is causing an issue. But we can’t get the error handling correctly on React Native. We looked at:
https://www.revenuecat.com/docs/test-and-launch/errors
https://www.revenuecat.com/docs/test-and-launch/debugging
But both of these pages doesn’t show React Native examples.

Can someone show us an example of error handling (or Debug Menu) on React Native?

Thank you.

Best answer by kaitlin

Hi @soscuisine,

To start debugging that error, I recommend having a look at this guide: 

These are the most common reasons you might get that configuration error. 

Regarding your question on error handling - are you looking for something like the debug overlay? If so, we don’t have that option for the hybrid SDKs unfortunately, only for iOS and Android native. 

To enable debug logs, we do have a RN sample in the Debugging documentation that you may have already seen, but I’m including it here as well:

Purchases.setLogLevel(Purchases.LOG_LEVEL.DEBUG);
Purchases.configure({
    apiKey: "<public_sdk_key>",
    appUserID: "<my_app_user_id>",
});

SDK reference: https://revenuecat.github.io/react-native-purchases-docs/8.2.3/classes/default.html#setLogLevel

View original
Did this post help you find an answer to your question?
This post has been closed for comments

1 reply

kaitlin
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 328 replies
  • Answer
  • October 4, 2024

Hi @soscuisine,

To start debugging that error, I recommend having a look at this guide: 

These are the most common reasons you might get that configuration error. 

Regarding your question on error handling - are you looking for something like the debug overlay? If so, we don’t have that option for the hybrid SDKs unfortunately, only for iOS and Android native. 

To enable debug logs, we do have a RN sample in the Debugging documentation that you may have already seen, but I’m including it here as well:

Purchases.setLogLevel(Purchases.LOG_LEVEL.DEBUG);
Purchases.configure({
    apiKey: "<public_sdk_key>",
    appUserID: "<my_app_user_id>",
});

SDK reference: https://revenuecat.github.io/react-native-purchases-docs/8.2.3/classes/default.html#setLogLevel


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings