Cordova Push

Learn how to handle push notifications in Cordova

Set Up and Register for Push Notifications and Deep Links


Set up push notifications for your app.

If you plan to use deep links, register your custom URL scheme as described here.

Call the following from your Javascript.



To use Push Notifications out of the box using CleverTap, add the following entries to your AndroidManifest.xml.

        <service android:name="">
                <action android:name="" />



📘 Notification trampolines in Android 12 and above.

To improve performance, Android has changed the handling of push notifications for version 12 and above. An app is no longer allowed to start an activity from within a service or broadcast receiver. For more information, refer to Android 12 Push Changes.

Creating Notification Channel

CleverTap.createNotificationChannel("CtCS", "Clever Tap Cordova Testing", "CT Cordova Testing", 1, true);

Delete Notification Channel


Creating a group notification channel

CleverTap.createNotificationChannelGroup("groupId", "groupName");

Delete a group notification channel


To use any Activity as a deep link, add your custom URL scheme to the AndroidManifest.xml for that Activity.

<intent-filter android:label="@string/app_name">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="clevertapstarter" />

See example AndroidManifest.xml.