Skip to main content

Getting started: Environments and logging

Configure rook_sdk_health_connect behaviour and logcat outputs.

Environment

The RookEnvironment enum allows to quickly configure the behaviour of rook_sdk_health_connect, e.g. the api used to communicate with ROOK servers.

Available environments:

  • sandbox ➞ Use this during your app development process.
  • production ➞ Use this ONLY when your app is published to the PlayStore.

You can use the kDebugMode property of you app to configure the environment:


const environment = kDebugMode ? RookEnvironment.sandbox : RookEnvironment.production;

Logging

If you want to see the logs generated by the rook-sdk native SDK, before setConfigurationcall enableNativeLogs. You can use the kDebugMode property of you app to configure logging:

void enableLogs() {
if (kDebugMode) {
HCRookConfigurationManager.enableNativeLogs();
}
}