Skip to main content


You can switch to the Integration environment in your SDK configuration object by referring to RCHEndpointIntegration.

    RCHAPIClientConfig *config = [[RCHAPIClientConfig alloc] initWithAPIKey:@"<api_key>"

To make debugging easier, you can also temporarily disable HTTPS by using useHTTPS:YES. This way you can inspect HTTP requests generated by the SDK without the need to install intermediate SSL certificates. If you are using this option, remember to disable it before submitting your app to the App Store, as this will break Apple's App Transport Security.

If you want to debug HTTP requests and JSON responses, you can enable logging by using the following line:

[RCHSDK setLogLevel:RCHLogLevelDebug];

This will output a comprehensive log including HTTP requests, JSON response, product tracking and network events.

  • Was this article helpful?