Troubleshooting Android SDK
Unsupported docs
PubNub no longer maintains Android SDK docs, but our Java SDK or Kotlin SDK are fully compatible with the Android platform and you can use them to build mobile apps, ensuring stable software development.
Enable logging
The PubNub Android SDK uses SLF4J to provide swappable logging, which allows you to switch between different logging frameworks. All logging calls from the SLF4J API are delegated to the underlying logging framework.
To see the body of requests, set the log verbosity to PNLogVerbosity.BODY. For more information, refer to the Configuration API reference page.
1PNConfiguration pnConfiguration = new PNConfiguration();
2
3pnConfiguration.logVerbosity(PNLogVerbosity.BODY);