Update the Connect Cordova SDK
Cordova has no in-place "update" command — to update the Connect Cordova plugin in your app, remove the current plugin, add the version you want, and rebuild. For available versions, see Release notes for mobile Connect SDKs.
Language: JavaScript, with TypeScript definitions
Availability: Pro, Premium, and Ultimate
Update the plugin
- Remove the current plugin and add the version you want. Omitting
@<version>installs whatever version npm's latest tag currently points to.
npx cordova plugin rm co.acoustic.connect.push
npx cordova plugin add cordova-acoustic-connectnpx cordova plugin rm co.acoustic.connect.push
npx cordova plugin add [email protected]- Rebuild for each platform.
npx cordova prepare ios && npx cordova build ios
npx cordova prepare android && npx cordova build androidOn iOS, npx cordova build ios runs pod install automatically as part of the plugin's after_prepare hook — no separate step needed. On Android, the Gradle sync happens as part of npx cordova build android.
Warning
ConnectConfig.jsonat your project root is not touched by an update — yourAppKey,PostMessageUrl, and other settings carry over unchanged. Check this plugin's own release notes for the version you're updating to, in case a new release adds a required key.
Useful commands
Check the installed plugin version
npx cordova plugin listThis prints the installed version alongside the plugin ID co.acoustic.connect.push.
Check the native SDK version
The plugin version above is separate from the native SDK versions it bundles — the plugin is a JavaScript wrapper around the underlying Connect SDKs for iOS and Android, and each plugin release pins a specific native SDK version per platform. Updating the plugin is how you update the native SDKs; there's no way to update either native SDK independently of the plugin. There's also no JS API to check the native SDK version at runtime — this is a build-time fact only.
iOS
The plugin pins an exact CocoaPods version based on useRelease in ConnectConfig.json — AcousticConnect = 2.1.15 (release) or AcousticConnectDebug = 2.1.13 (debug). Confirm which one is actually resolved:
grep -A1 "AcousticConnect" platforms/ios/Podfile.lockAndroid
The resolved version is either the AndroidVersion override in ConnectConfig.json, or the plugin's bundled default if you haven't set one. Confirm what actually resolved:
cd platforms/android && ./gradlew :app:dependencies | grep connect-push-fcmUpdated about 1 hour ago
