Skip to content

Commit aef160e

Browse files
feat(lets-cooee): add event observer and installation documentation (#4278)
* feat(Cooee): add Cooee plugin * chore(Cooee): update document * Update index.ts * feat(lets-cooee): add event observable * docs(lets-cooee): add lets-cooee documentation Co-authored-by: Daniel Sogl <[email protected]>
1 parent a801c7d commit aef160e

File tree

2 files changed

+52
-0
lines changed
  • docs/plugins/lets-cooee
  • src/@awesome-cordova-plugins/plugins/lets-cooee

2 files changed

+52
-0
lines changed

docs/plugins/lets-cooee/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Ionic Plugin for Cooee SDK
2+
3+
## What is Cooee?
4+
5+
Let’s Cooee powers hyper-personalized and real time engagements for mobile apps based on machine learning. The SaaS platform, hosted on
6+
cloud infrastructure processes millions of user transactions and data attributes to create unique and contextual user engagement
7+
triggers for end users with simple SDK integration that requires no coding at mobile app level.
8+
9+
For more information visit our [website](https://www.letscooee.com/) and [documentation](https://docs.letscooee.com/developers/cordova/quickstart).
10+
11+
## Features
12+
13+
1. Plug and Play - Plugin is plug and play for mobile applications. That means it needs to be initialized with the Application Context, and it
14+
will work automatically in the background.
15+
2. Independent of Application - Plugin is independent of the application. It will collect data points with zero interference from/to the
16+
applications. Although applications can send additional data points (if required) to the Plugin using API’s.
17+
3. Rendering engagement triggers - Plugin will render the campaign trigger at real-time with the help of server http calls.
18+
19+
## Platforms
20+
21+
- Android (Minimum Android 5.0 / API level 21)
22+
- iOS (Minimum deployment target iOS 13)
23+
24+
## Installation
25+
26+
```
27+
$ ionic cordova plugin add @letscooee/cordova-plugin --variable COOEE_APP_ID="MY_COOEE_APP_ID"
28+
$ npm install @awesome-cordova-plugins/lets-cooee
29+
```
30+
Replace `MY_COOEE_APP_ID` with the `App ID` which is present at [Cooee Portal](https://dashboard.letscooee.com/app/details).
31+
32+
## Usage Documentation
33+
34+
For detailed installation & uses, Refer [Cordova](https://docs.letscooee.com/developers/cordova/quickstart) documentation.
35+
36+
Plugin Repo: [https://github.com/letscooee/cordova-plugin-cooee](https://github.com/letscooee/cordova-plugin-cooee)
37+
38+
Requires Cordova plugin: `@letscooee/cordova-plugin` [![npm](https://img.shields.io/npm/v/@letscooee/cordova-plugin)](https://www.npmjs.com/package/@letscooee/cordova-plugin).

src/@awesome-cordova-plugins/plugins/lets-cooee/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Injectable } from '@angular/core';
22
import { Plugin, Cordova, AwesomeCordovaNativePlugin } from '@awesome-cordova-plugins/core';
3+
import { Observable } from 'rxjs';
34

45
/**
56
* @name Lets Cooee
@@ -72,4 +73,17 @@ export class Cooee extends AwesomeCordovaNativePlugin {
7273
getUserID(): Promise<any> {
7374
return;
7475
}
76+
77+
/**
78+
* Provides callback for the onCooeeCTAListener event.
79+
* @return {Observable<Any>} Returns an observable record.
80+
*/
81+
@Cordova({
82+
eventObservable: true,
83+
event: 'onCooeeCTAListener',
84+
element: document,
85+
})
86+
addCooeeCTAListener(): Observable<any> {
87+
return;
88+
}
7589
}

0 commit comments

Comments
 (0)