Skip to content

How to enable logging

Jakub Dzubak edited this page Dec 17, 2025 · 1 revision

How to enable logging

To enable logging, set the logging: true parameter at the top level of your initialization configuration. This feature is available for both iOS and Android platforms and allows you to view native platform logs directly in your Flutter console.

Configuration

Add the logging parameter at the root level of your configuration object:

InfobipMobilemessaging.init(Configuration(
    applicationCode: '<Your Application Code>',
    logging: true,
    iosSettings: IOSSettings(
        // iOS specific configuration
    ),
    androidSettings: AndroidSettings(
        // Android specific configuration
    ),
));

See the complete example in the Example App.

How it works

When logging is enabled:

  • Native SDK logs from both iOS and Android are automatically forwarded to the Flutter console
  • Platform native logs are displayed using developer.log()

Platform-specific behavior

iOS

  • Logs appear in both Xcode console and Flutter console when logging is enabled

Android

  • When enabled, logs appear in Flutter console, otherwise you can find logs in Android Logcat

Clone this wiki locally