-
Notifications
You must be signed in to change notification settings - Fork 11
How to enable logging
Jakub Dzubak edited this page Dec 22, 2025
·
2 revisions
From the plugin version 7.2.1 onwards, set the loggingEnabled: true parameter at the top level of your initialization configuration to enable logging. This feature is available for both iOS and Android platforms and allows you to view native platform logs directly in your Cordova JS console.
Add the loggingEnabled parameter at the root level of your configuration object:
MobileMessaging.init({
applicationCode: '<Your Application Code>',
loggingEnabled: true,
...
});See the complete example in the Example App.
When logging is enabled:
- Native SDK logs from both iOS and Android are automatically forwarded to the Cordova JS console
- Platform native logs are displayed using
console.log()
- Logs appear in both Xcode console and Cordova JS console when logging is enabled
- When enabled, logs appear in Cordova JS console, otherwise you can find logs in Android Logcat
Expand for the versions before 7.2.1
To enable logging on iOS parameter logging: true needs to be provided to initialization configuration, as in the Example App
MobileMessaging.init({
applicationCode: '<Your Application Code>',
ios: {
notificationTypes: ['alert', 'badge', 'sound'],
logging: true,
},
...
});If you have any questions or suggestions, feel free to send an email to support@infobip.com or create an issue.
- Library events
- Server errors
- Users and installations
- Messages and notifications management
- Inbox
GeofencingDEPRECATED- Privacy settings
- In-app chat
- Migration guides
- Migration guide to version 8.3.x
- Migration guide to version 8.1.x
- Migration guide to version 7.9.x
- Migration guide to version 7.x.x
- Migration guide to version 6.2.x
- Migration guide to version 6.1.x
- Migration guide to version 6.x.x
- Migration guide to version 1.x.x
- Migration guide to version 2.2.x
- Migration guide to version 3.x.x
- Migration guide to version 4.x.x
- Migration guide to version 4.1.x
- Troubleshooting
- JSON Web Token (JWT) structure and generation example
- Trusted Domains Security