Skip to content

How to enable logging on iOS

Davor Komušanac edited this page Dec 5, 2022 · 1 revision

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,
                },
                ...
            },
            () => {
                this.updateLogInfo('MobileMessaging started');
            },
            (error) => {
                this.updateLogInfo('MobileMessaging error: ' + error);
            },
);
Clone this wiki locally