6.0.5 • Published 4 days ago

@capgo/capacitor-crisp v6.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 days ago

capacitor-crisp

Crisp native SDK for capacitor

Install

npm install @capgo/capacitor-crisp
npx cap sync

Init

Call configure in your code Before any other method :

import { CapacitorCrisp } from '@capgo/capacitor-crisp';

CapacitorCrisp.configure({websiteID: '******-****-****-****-********'})

iOS

To enable your users to take and upload photos to the chat as well as download photos to their photo library, add :

Privacy - Camera Usage Description (NSCameraUsageDescription)

Privacy - Photo Library Additions Usage Description (NSPhotoLibraryAddUsageDescription)

to your app's Info.plist.

Android Integration

Nothing special to do.

Open chatbox

import { CapacitorCrisp } from '@capgo/capacitor-crisp';

CapacitorCrisp.openMessenger()

API

configure(...)

configure(data: { websiteID: string; }) => any
ParamType
data{ websiteID: string; }

Returns: any


openMessenger()

openMessenger() => any

Returns: any


setTokenID(...)

setTokenID(data: { tokenID: string; }) => any
ParamType
data{ tokenID: string; }

Returns: any


setUser(...)

setUser(data: { nickname?: string; phone?: string; email?: string; avatar?: string; }) => any
ParamType
data{ nickname?: string; phone?: string; email?: string; avatar?: string; }

Returns: any


pushEvent(...)

pushEvent(data: { name: string; color: eventColor; }) => any
ParamType
data{ name: string; color: eventColor; }

Returns: any


setCompany(...)

setCompany(data: { name: string; url?: string; description?: string; employment?: [title: string, role: string]; geolocation?: [country: string, city: string]; }) => any
ParamType
data{ name: string; url?: string; description?: string; employment?: title: string, role: string; geolocation?: country: string, city: string; }

Returns: any


setInt(...)

setInt(data: { key: string; value: number; }) => any
ParamType
data{ key: string; value: number; }

Returns: any


setString(...)

setString(data: { key: string; value: string; }) => any
ParamType
data{ key: string; value: string; }

Returns: any


sendMessage(...)

sendMessage(data: { value: string; }) => any
ParamType
data{ value: string; }

Returns: any


setSegment(...)

setSegment(data: { segment: string; }) => any
ParamType
data{ segment: string; }

Returns: any


reset()

reset() => any

Returns: any


Type Aliases

eventColor

"red" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "brown" | "grey" | "black"

6.0.3

4 days ago

6.0.2

4 days ago

6.0.5

4 days ago

6.0.4

4 days ago

6.0.1

10 days ago

6.0.0

10 days ago

2.0.15

8 months ago

2.0.16

7 months ago

2.0.13

9 months ago

2.0.14

9 months ago

2.0.11

9 months ago

2.0.12

9 months ago

2.0.9

10 months ago

2.0.10

10 months ago

2.0.3

12 months ago

2.0.2

12 months ago

2.0.5

12 months ago

2.0.4

12 months ago

2.0.7

12 months ago

2.0.6

12 months ago

2.0.8

11 months ago

2.0.1

12 months ago

2.0.0

12 months ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago