Get started with the Connect SDK in a Cordova app

The Connect SDK for Cordova brings your mobile app users into your Connect audience and lets your marketing team reach them with push notifications. One JavaScript API covers both iOS and Android, so your marketing team can author push content from Connect without any code changes per campaign.

Language: JavaScript, with TypeScript definitions. The rich-media extensions on iOS are implemented in Swift.

Availability: Pro, Premium and Ultimate


What the plugin does

CapabilityDescriptionGuide
Push notificationsRegisters the device for push (Apple Push Notification service on iOS, Firebase on Android) and delivers Connect-authored notifications.Push notifications in a Cordova app
Identity signalsMatches anonymous sessions and push-eligible devices to known contacts in your Connect audience by firing a signal at sign-in or registration.Identify users at sign-in and Identify users at registration
Session intelligence (Premium and Ultimate)View app sessions with identity and push interaction signals.
⚠️

Important

The Connect Cordova SDK does not include behavioral analytics (behavior signals, screen capture or session replay).


Requirements

Cordova CLI12.0.0 or later
Node.js20 or later

See Integrate the Connect SDK into a Cordova app for the full requirements.


Integration path

  1. Integrate the Connect SDK into a Cordova app - add the plugin to your project and link it to your subscription.
  2. Identify your users at sign-in and at registration.
  3. Enable push notifications - iOS and Android setups are independent and can be done in either order.
  4. Move your Cordova integration to production when you're ready to release.
  5. Update the Connect Cordova SDK when a new version is available.

Reference

See the Connect Cordova SDK public API reference for the full method list - enable, disable, setLogLevel, logIdentity and the push namespace.


Sample app

The Acoustic Connect Cordova sample app exercises identity signals and push permission requests on both platforms.


Did this page help you?