Skip to content

Migration to version 2.2

Alexander Boldyrev edited this page Nov 8, 2022 · 1 revision

From 2.2.0 version we started to use XCFramework built via Carthage for iOS platform. Follow the steps to migrate smoothly:

  1. Update Xcode to 12.5, Carthage to 0.37+, Cordova to 10.
  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
...
    <plugin name="com-infobip-plugins-mobilemessaging" spec="...">
        <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="ANDROID_FIREBASE_SENDER_ID" value="{Firebase Sender ID}" />
        <variable name="HUAWEI_SENDER_ID" value="{Huawei App ID}" />
    </plugin>
...
  1. Run cordova prepare to apply variables
  2. Open Xcode and remove build phase Copy Frameworks from main application target Build Phases tab.
Clone this wiki locally