Get started with the Connect SDK in a Cordova app

The Connect SDK for Cordova is a simplified version of the Connect SDK, focused on two things: sending mobile push notifications and identifying your users — creating new contacts in your audience, and recognizing existing ones using the app. One JavaScript API covers both iOS and Android, so your marketing team can author push content (thumbnail images, expandable rich content, and tappable actions) from Connect without any code changes on your side per campaign.

⚠️

Important

The Connect Cordova SDK doesn't include behavioral analytics, automatic screen or touch capture, or session replay.

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

Availability: Pro, Premium, and Ultimate


What the SDK does

CapabilityDescriptionGuide
Push notificationsRegisters the device for push on both platforms — APNs on iOS, Firebase Cloud Messaging (FCM) on Android — and delivers Connect-authored notifications.Push notifications in a Cordova app
Identity signalsMatch 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

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 — install the plugin, create ConnectConfig.json, and call enable().
  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.

Sample app

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