Skip to main content
RichRelevance

Using the Integration environment

You can use the Integration environment to test your implementation before it goes live, or to review a particular configuration before publishing live to Production.

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

    RCHAPIClientConfig *config = [[RCHAPIClientConfig alloc] initWithAPIKey:@"<api_key>"
                                                               APIClientKey:@"<api_client_key>"
                                                                   endpoint:RCHEndpointIntegration
                                                                   useHTTPS:YES];

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.