Migrate Campaign SDK for React Native to the latest version

When migrating your React Native app to the latest Campaign SDK version, complete the following steps.

  1. Remove the existing SDK plug-ins that are currently installed. If you do not have one of the plug-ins installed, you don’t need to run the command to remove it.
npm install

npx react-native unlink react-native-acoustic-mobile-push
npx react-native unlink react-native-acoustic-mobile-push-beacon
npx react-native unlink react-native-acoustic-mobile-push-calendar
npx react-native unlink react-native-acoustic-mobile-push-displayweb
npx react-native unlink react-native-acoustic-mobile-push-geofence
npx react-native unlink react-native-acoustic-mobile-push-inapp
npx react-native unlink react-native-acoustic-mobile-push-inbox
npx react-native unlink react-native-acoustic-mobile-push-location
npx react-native unlink react-native-acoustic-mobile-push-snooze
npx react-native unlink react-native-ios-notification-service

npm uninstall react-native-acoustic-mobile-push
npm uninstall react-native-acoustic-mobile-push-beacon
npm uninstall react-native-acoustic-mobile-push-calendar
npm uninstall react-native-acoustic-mobile-push-displayweb
npm uninstall react-native-acoustic-mobile-push-geofence
npm uninstall react-native-acoustic-mobile-push-inapp
npm uninstall react-native-acoustic-mobile-push-inbox
npm uninstall react-native-acoustic-mobile-push-location
npm uninstall react-native-acoustic-mobile-push-snooze
npm uninstall react-native-ios-notification-service
  1. Install the latest versions of the SDK plug-ins, replacing <path to download> with the location of the latest SDK download. You only need to reinstall the plug-ins you previously used.
npm install <path to download>/plugins/react-native-acoustic-mobile-push
npm install <path to download>/plugins/react-native-acoustic-mobile-push-beacon
npm install <path to download>/plugins/react-native-acoustic-mobile-push-calendar
npm install <path to download>/plugins/react-native-acoustic-mobile-push-displayweb
npm install <path to download>/plugins/react-native-acoustic-mobile-push-geofence
npm install <path to download>/plugins/react-native-acoustic-mobile-push-inapp
npm install <path to download>/plugins/react-native-acoustic-mobile-push-inbox
npm install <path to download>/plugins/react-native-acoustic-mobile-push-location
npm install <path to download>/plugins/react-native-acoustic-mobile-push-snooze
npm install <path to download>/plugins/react-native-ios-notification-service

npx react-native link react-native-acoustic-mobile-push
npx react-native link react-native-acoustic-mobile-push-beacon
npx react-native link react-native-acoustic-mobile-push-calendar
npx react-native link react-native-acoustic-mobile-push-displayweb
npx react-native link react-native-acoustic-mobile-push-geofence
npx react-native link react-native-acoustic-mobile-push-inapp
npx react-native link react-native-acoustic-mobile-push-inbox
npx react-native link react-native-acoustic-mobile-push-location
npx react-native link react-native-acoustic-mobile-push-snooze
npx react-native link react-native-ios-notification-service

📘

Tip:

You can also successfully remove and reinstall the same version if needed.