We are moving to Discord!

Join us on the Countly Community Discord Server! Engage in discussions, share your feature ideas, and learn from fellow Countly users to build exceptional apps and experiences.

How to set custom http request headers (Android SDK)?

Countly class has a method called addCustomNetworkRequestHeaders described in the documentation hereI can't find it in the source code of the SDK and it's not available.

Is there any other way to set custom request headers?

0

Comments

2 comments
  • Official comment

    Hello,
    Thank you for bringing this up, there is a error in our documentation. To set the custom http headers in the latest SDK versions, you have to do that through the init time configuration object:

    config.addCustomNetworkRequestHeaders(customHeaderValues)
    Comment actions Permalink
  • Hi Arturs!
    Thank you!

    0
    Comment actions Permalink

Please sign in to leave a comment.