Skip to content

Migration to version 6.x.x

Ivan Bilobrk edited this page Jan 23, 2025 · 1 revision

From version 6.0.0 we replaced XCFramework built via Carthage with CocoaPods for integration of the MobileMessaging native SDK for iOS platform. Follow the steps to migrate smoothly:

  1. Make sure to check requirements of required software on this page.
  2. Reinstall plugin (cordova plugin rm com-infobip-plugins-mobilemessaging, cordova plugin add com-infobip-plugins-mobilemessaging --save)
  3. Add Back variables which you set for plugin previously in the config.xml file:
...
    <plugin name="com-infobip-plugins-mobilemessaging" spec="<current plugin version>">
        <variable name="IOS_EXTENSION_APP_CODE" value="{YOUR APPLICATION CODE FROM INFOBIP PORTAL}" />
        <variable name="IOS_EXTENSION_APP_GROUP" value="{APP GROUP ID FROM APPLE PORTAL}" />
        <variable name="HUAWEI_SENDER_ID" value="{Huawei App ID}" />
    </plugin>
...
  1. Run cordova build to apply variables
  2. Make sure to check docs for integrating Notification Service Extension to your app: Delivery improvements and rich content notifications.
  3. If any issues appear first try removing ios platform: cordova platform rm ios and then add it again: cordova platform add ios.
Clone this wiki locally