SDK Installation
React Native

Get Started

12min

The Cooee's React Native plugin for customer engagement gives your team the power to easily integrate it into your CReact Native application. Follow these simple steps:

Add Plugin

Install the plugin using the popular single commands in the Terminal/PowerShell:

YARN
NPM


NPM/YARN will automatically pull the latest version of the plugin.

Document image


Static Libray compatibility (iOS only) (Required)

If your react native iOS application uses the Flipper library, these steps are for you.

This plugin depends on CooeeSDK which is a framework. To make it compatible with the iOS static library, you need to follow the below steps:

Add below line to Podfile present in ios/ folder

Podfile


Append the following pre_install script in Podfile present at ios/ folder.

Podfile


Configure Credentials

Android

Add the following in AndroidManifest.xml inside the application tag:

XML


iOS

Add the following snippet in the app level Info.plist:

Plist


Replace MY_COOEE_APP_ID with the App ID which is present at Cooee Portal.

Permission Usage

Android (Optional)

Cooee SDK supports prompting the following permissions via engagement. To make it work, you need to add the following to the app's AndroidManifest.xml file present in android/app/src/main/ folder.

XML


iOS (Required)

Cooee SDK uses a few permission if granted (we do not ask explicitly) for analysing the user. This helps us to create and deliver better notifications and in-apps. Apple requires a user-friendly description of such permissions as defined here.

Add the following permission description to App's Info.plist file present at ios/APPLICATION_NAME/ folder.

Plist


Configure Native code

Android

Open your MainApplication class present in android/app/src/main/java/your_package_name/ and extend it with CooeePlugin class.

Java
Kotlin


iOS

Open your AppDelegate file from ios/app_name/ and add following snippet:

ObjectiveC
Swift


Grab a Reference

TypeScript




Updated 25 Mar 2024
Did this page help you?