Skip to content

Migration Guides

Ivan Krešić edited this page Feb 7, 2024 · 4 revisions

Migration from 3.0.x to 4.0.x

From this version we've added support for Full-featured In-App notifications.

Migration from 1.x to 2.x

Changes for the WebRTCUI

Because the major release of Infobip WebRTC SDK 2.0, content and setup exclusive of Infobip WebRTC SDK 1.x will be deprecated on 31/10/2023. The previous WebRTC application you used must be replaced with two new separate models: WebRTC Application and WebRTC Push Configuration.

To enable calls you need to set up WebRTC Push configurationId and pass it to the configuration object instead of deprecated applicationId.

Replace old configuration:

Configuration(
    ...
    webRTCUI: WebRTCUI(
      applicationId: 'your webrtc application id'
    )
    ...
));

with new:

Configuration(
    ...
    webRTCUI: WebRTCUI(
      configurationId: 'Your WebRTC Push configuration id'
    )
    ...
));

Migration from 1.3.x to 1.4.x

If you used customization previously, you will need to replace:

mobileMessaging.setupiOSChatSettings({
        title: 'Chat title',
        sendButtonColor: '#FF0000',
        navigationBarItemsColor: '#FF0000',
        navigationBarColor: '#FFFF00',
        navigationBarTitleColor: '#FF0000',
})

with:

MobileMessaging.setupChatSettings(
	toolbarTitle: 'Chat title',
    sendButtonTintColor: '#FF0000',
    toolbarTintColor: '#FF0000',
    toolbarBackgroundColor: '#FFFF00',
    toolbarTitleColor: '#FF0000',
)

this settings will be applied for both platform instead of iOS only.

Notice: If you used Android settings in the styles.xml, they will be overridden by Mobile Messaging.setup ChatSettings method.

Migration from 0.8.x to 0.9.x

Added option to register to POST_NOTIFICATIONS permission for Android 13.