Troubleshooting

Enable debug log

In case you encounter a problem with this library, then try to turn-on a detailed debug log to provide a more information for the library developers:

// Enable debug log with failed call to native function.
PowerAuthDebug.traceNativeCodeCalls(traceFailure: true);
// Trace all calls to native library
PowerAuthDebug.traceNativeCodeCalls(traceEachCall: true, traceFailure: true);

The PowerAuthDebug class is effective only when isEnabled is true, which is only when the app is compiled in debug mode (kDebugMode is true). We don’t want to log sensitive information to the console in the production application.

Dumping native objects

If PowerAuthDebug.isEnabled is turned on, then you can dump information about all native objects allocated and used by PowerAuth Mobile Flutter SDK:

// Dump all objects
await PowerAuthDebug.dumpNativeObjects();
// Dump objects related to PowerAuth instance
await PowerAuthDebug.dumpNativeObjects(instanceId: powerAuth.instanceId);
Last updated on Jun 13, 2025 (19:13) Edit on Github Send Feedback
Search

1.0.0.beta

PowerAuth Mobile Flutter