Get Started
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:
Install the plugin using the popular single commands in the Terminal/PowerShell:
NPM/YARN will automatically pull the latest version of the plugin.
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
Append the following pre_install script in Podfile present at ios/ folder.
Add the following in AndroidManifest.xml inside the application tag:
Add the following snippet in the app level Info.plist:
Replace MY_COOEE_APP_ID with the App ID which is present at Cooee Portal.
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.
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.
Open your MainApplication class present in android/app/src/main/java/your_package_name/ and extend it with CooeePlugin class.
Open your AppDelegate file from ios/app_name/ and add following snippet: