-
Notifications
You must be signed in to change notification settings - Fork 9
How to enable logging
Jakub Dzubak edited this page Dec 29, 2025
·
1 revision
To enable platform native SDK logging in the React Native JS console, set the logging: true parameter in the initialization configuration. This feature is available for both iOS and Android
platforms.
Add the logging parameter at the root level of your configuration object:
mobileMessaging.init(
{
applicationCode: '<Your Application Code>',
logging: true,
ios: {
notificationTypes: ['alert', 'badge', 'sound'],
},
android: {
// Android specific configuration
},
...
},
() => {
console.log('MobileMessaging started');
},
(error) => {
console.error('MobileMessaging error: ' + error);
},
);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 React Native JS console
- Platform native error logs are displayed using
console.error() - Platform native warning logs are displayed using
console.warn() - Platform native info, debug, and verbose logs are displayed using
console.log()
- Logs appear in both Xcode console and React Native JS console when logging is enabled
- When enabled, logs appear in React Native JS console, otherwise you can find logs in Android Logcat
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
- Privacy settings
- In‐app chat
- WebRTC Calls and UI
- Migration guides
- JSON Web Token (JWT) structure and generation example