Socket
Socket
Sign inDemoInstall

capacitor-crisp

Package Overview
Dependencies
2
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    capacitor-crisp

Crisp native SDK for capacitor


Version published
Weekly downloads
3
decreased by-83.33%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

capacitor-crisp

Crisp native SDK for capacitor

Install

npm install capacitor-crisp
npx cap sync

Init

Call configure in your code Before any other method :

import { CapacitorCrisp } from '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 'capacitor-crisp';

CapacitorCrisp.openMessenger()

API

configure(...)

configure(data: { websiteID: string; }) => Promise<void>
ParamType
data{ websiteID: string; }

openMessenger()

openMessenger() => Promise<void>

setTokenID(...)

setTokenID(data: { tokenID: string; }) => Promise<void>
ParamType
data{ tokenID: string; }

setUser(...)

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

pushEvent(...)

pushEvent(data: { name: string; color: eventColor; }) => Promise<void>
ParamType
data{ name: string; color: eventColor; }

setCompany(...)

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

setInt(...)

setInt(data: { key: string; value: number; }) => Promise<void>
ParamType
data{ key: string; value: number; }

setString(...)

setString(data: { key: string; value: string; }) => Promise<void>
ParamType
data{ key: string; value: string; }

sendMessage(...)

sendMessage(data: { value: string; }) => Promise<void>
ParamType
data{ value: string; }

setSegment(...)

setSegment(data: { segment: string; }) => Promise<void>
ParamType
data{ segment: string; }

reset()

reset() => Promise<void>

Type Aliases

eventColor

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

Keywords

FAQs

Last updated on 20 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc