I was using the code from RevenueCat sample react native project to do a trial of RevenueCat integration. In the package.json there is "react-native-purchases": "^5.0.0".
https://github.com/RevenueCat/react-native-purchases/tree/main/examples/MagicWeather
Following is the code of App.js and there is Purchases.setDebugLogsEnabled(true).
const App: () => React$Node = () => { useEffect(() => { Purchases.setDebugLogsEnabled(true); Purchases.configure({ apiKey: API_KEY, appUserID: null, observerMode: false, useAmazon: false }); }, ,]); return ( <> <StatusBar barStyle="light-content" /> <Router /> </> );
However, there is no log was generated as the section of Sample Output of RevenueCat doc:
https://www.revenuecat.com/docs/debugging
e.g.
What I got from console is just following: Welcome to Metro! To reload the app press "r" BUNDLE ./index.js LOG Running "MagicWeatherReactNative" with {"rootTag":1} Could you kindly coach how can I generate the log as the Sample Output of RevenueCat doc indicates? Thanks! https://www.revenuecat.com/docs/debugging The the attached pdf and the following diagram are the console.
Fast - Scalable - Integrated
To open developer menu press "d"
LOG ###################Dev-test] customerInfo=#object Object], typeof customerInfo = undefined
WARN Modify this value to reflect your app's Privacy Policy and Terms & Conditions agreements. Required to make it through App Review.
footer
RCTView
View
VirtualizedListCellContextProvider@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:73356:24
RCTView
View
RCTScrollView
ScrollView@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:73955:36
ScrollView
VirtualizedListContextProvider@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:73325:25
VirtualizedList@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:71638:36
FlatList@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:71056:36
RCTView
View
PaywallScreen@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:138899:41
StaticContainer@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:120057:17
EnsureSingleNavigator@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:118583:24
SceneView@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:119941:22
RCTView
View
RCTView
View
RCTView
View
CardSheet@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:130149:23
RCTView
View
AnimatedComponent@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:70702:38
AnimatedComponentWrapper
PanGestureHandler@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:112996:38
PanGestureHandler@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:125184:34
RCTView
View
AnimatedComponent@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:70702:38
AnimatedComponentWrapper
RCTView
View
Card@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:127722:36
CardContainer@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:127396:22
RCTView
View
MaybeScreen@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:126206:24
RCTView
View
MaybeScreenContainer@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:126175:23
CardStack@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:125332:36
KeyboardManager@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:130326:36
RNCSafeAreaProvider
SafeAreaProvider@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:124950:24
SafeAreaProviderCompat@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:130778:24
GestureHandlerRootView
GestureHandlerRootView@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:112528:24
StackView@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:124411:36
StackNavigator@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:124289:32
EnsureSingleNavigator@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:118583:24
BaseNavigationContainer@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:118208:28
ThemeProvider@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:122647:21
NavigationContainer@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:122551:26
Router
App@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:112081:26
RCTView
View
RCTView
View
AppContainer@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:78615:36
MagicWeatherReactNative(RootComponent)@http://192.168.100.5:8081/index.bundle?platform=android&dev=true&minify=false&app=com.revenuecat.magicweather.lataval.reactnative&modulesOnly=false&runModule=true:85519:28
LOG ---------------- offerings.current enter PaywallScreen
ERROR Error getting offers /Error: There is an issue with your configuration. Check the underlying error for more details.]