Skip to main content
Solved

Why no log was generated with etDebugLogsEnabled(true) in React Native [Android]

  • September 14, 2022
  • 2 replies
  • 116 views

Forum|alt.badge.img+1

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.

[Purchases] - DEBUG: Debug logging enabled. [Purchases] - DEBUG: SDK Version - 2.0.0 [Purchases] - DEBUG: Initial App User ID - <APP_USER_ID> [Purchases] - DEBUG: Changing App User ID: (null) -> <APP_USER_ID> [Purchases] - DEBUG: GET /v1/subscribers/<APP_USER_ID> [Purchases] - DEBUG: GET /v1/subscribers/<APP_USER_ID>/products [Purchases] - DEBUG: Delegate set [Purchases] - DEBUG: Sending latest purchaser info to delegate [Purchases] - DEBUG: Vending purchaserInfo from cache [Purchases] - DEBUG: Vending purchaserInfo from cache [Purchases] - DEBUG: applicationDidBecomeActive [Purchases] - DEBUG: No cached entitlements, fetching [Purchases] - DEBUG: GET /v1/subscribers/<APP_USER_ID> 200 [Purchases] - DEBUG: Purchaser info updated, sending to delegate [Purchases] - DEBUG: GET /v1/subscribers/<APP_USER_ID>/products 200

 

What I got from console is just following:

                    Welcome to Metro!
              Fast - Scalable - Integrated

To reload the app press "r"
To open developer menu press "d"

 BUNDLE  ./index.js

 LOG  Running "MagicWeatherReactNative" with {"rootTag":1}
 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.]

 

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.

 

Best answer by cody

Hey @wejoinious and @PING,

Could you try checking logcat in Android Studio when running your app?

View original
This post has been closed for comments

2 replies

Forum|alt.badge.img
  • New Member
  • 4 replies
  • September 16, 2022

same issue, no revenueCat logs are being generated when testing anything


cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 501 replies
  • Answer
  • October 7, 2022

Hey @wejoinious and @PING,

Could you try checking logcat in Android Studio when running your app?


Forum|alt.badge.img+1
  • Author
  • New Member
  • 2 replies
  • October 7, 2022
cody wrote:

Hey @wejoinious and @PING,

Could you try checking logcat in Android Studio when running your app?

Thanks! I already did it


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