npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@digia-engage/clevertap

v3.0.0

Published

Shell package carrying the native Digia CEP plugin for CleverTap (Android/iOS) into a React Native app via autolinking. All CEP logic is native — see README.md.

Downloads

416

Readme

@digia-engage/clevertap

CleverTap CEP plugin for Digia Engage on React Native.

the integration runs entirely in the native Digia Engage CleverTap plugin (tech.digia:engage-clevertap on Android, DigiaEngageCleverTap on iOS), which this package adds to your app through autolinking. Template registration, campaign delivery, and reporting back to CleverTap all happen natively. Digia.register(new DigiaCleverTapPlugin()) attaches it.


Installation

npm install @digia-engage/clevertap @digia-engage/core

clevertap-react-native is no longer a dependency of this package. Keep it installed if your app uses CleverTap's own RN SDK directly (push notifications, custom events, etc.) — this plugin no longer touches it.


Usage

import { useEffect } from 'react';
import { Digia } from '@digia-engage/core';
import { DigiaCleverTapPlugin } from '@digia-engage/clevertap';

export function RootApp() {
  useEffect(() => {
    (async () => {
      await Digia.initialize({ apiKey: 'YOUR_ACCESS_KEY' });
      Digia.register(new DigiaCleverTapPlugin());
    })().catch(console.error);
  }, []);

  return <AppNavigator />;
}

Screen tracking

Digia.setCurrentScreen('Home');

Forwarded to CleverTap natively so CleverTap can evaluate screen-scoped campaigns.


Migration to v3 (native shell) — read this before upgrading

v3 deletes this package's entire TypeScript implementation (CleverTapClient, CleverTapPayloadMapper, the slot-lifecycle logic in DigiaCleverTapPlugin, the bundled digia.json, and their tests). If you were constructing the plugin with a client — new DigiaCleverTapPlugin({ cleverTap: createCleverTapClient(CleverTap) }) — drop the argument; createCleverTapClient no longer exists.

One required native setup step

CleverTap resolves custom templates when its instance is created — earlier than any RN module's init can run. Your app must call DigiaCleverTapPlugin.prepareCleverTapCustomTemplates() from both:

  • Android — Application.onCreate(), before CleverTapAPI is created.
  • iOS — AppDelegate.application(_:didFinishLaunchingWithOptions:), before CleverTap initialises.

This is one line in each file. CleverTap's own React Native SDK already needs setup in both files, so you are adding one more line where you already have code. Skipping it means CleverTap silently filters out custom-template campaigns (DigiaTemplate) before they ever reach Digia.

prepareCleverTapCustomTemplates() is a native method on the native plugin (DigiaCleverTapPlugin in com.digia.engage.clevertap / the Swift DigiaEngageCleverTap module) — it is not exposed to JS, because it must run before the RN bridge exists.

digia.json is gone

Previously this package bundled digia.json and registered the DigiaTemplate custom template from it at load time (Android: a ContentProvider; iOS: an Objective-C +load). The native plugin now registers the same template in code. Registering it twice throws CleverTapCustomTemplateException at startup — so if you're upgrading from an older @digia-engage/clevertap, make sure you don't have a stray digia.json or old init class hanging around after the upgrade (a clean pod install / Gradle sync clears it).

Peer version note

Requires @digia-engage/core 3.x. Older cores can't attach the native plugin.

Compatibility

| Dependency | Supported range | |---|---| | @digia-engage/core | >= 3.0.0, < 4.0.0 | | Native Android plugin | engage-clevertap >= 3.0.0, < 4.0.0 | | Native iOS plugin | DigiaEngageCleverTap >= 2.0.0, < 3.0.0 | | CleverTap Android SDK | >= 7.3.1, < 9.0.0 (tested through 8.4.1) | | CleverTap iOS SDK | >= 7.5.1, < 8.0.0 |

If the app also uses clevertap-react-native, verify that wrapper release's native Android and iOS pins both fall inside these windows.


Template

The DigiaTemplate custom template has three arguments (registered natively, documented here for reference when building campaigns on the CleverTap dashboard):

| Argument | Type | Default | |----------------------|--------|---------| | digia_campaign_key | string | "" | | variables | string | "{}" | | action | action | Configure Custom → DigiaPrimaryClick |


API

DigiaCleverTapPlugin

| Member | Description | |---|---| | constructor(options?) | options is accepted and ignored — kept for source compatibility. | | nativePluginId | 'clevertap'. Read by Digia.register() to attach the native plugin. |


License

Business Source License 1.1 (BUSL-1.1) © Tinkerbox Technology Private Limited — see LICENSE