Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
capacitor-crisp
Advanced tools
Readme
Crisp native SDK for capacitor
npm install capacitor-crisp
npx cap sync
Call configure in your code Before any other method :
import { CapacitorCrisp } from 'capacitor-crisp';
CapacitorCrisp.configure({websiteID: '******-****-****-****-********'})
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.
Nothing special to do.
import { CapacitorCrisp } from 'capacitor-crisp';
CapacitorCrisp.openMessenger()
configure(...)
openMessenger()
setTokenID(...)
setUser(...)
pushEvent(...)
setCompany(...)
setInt(...)
setString(...)
sendMessage(...)
setSegment(...)
reset()
configure(data: { websiteID: string; }) => Promise<void>
Param | Type |
---|---|
data | { websiteID: string; } |
openMessenger() => Promise<void>
setTokenID(data: { tokenID: string; }) => Promise<void>
Param | Type |
---|---|
data | { tokenID: string; } |
setUser(data: { nickname?: string; phone?: string; email?: string; avatar?: string; }) => Promise<void>
Param | Type |
---|---|
data | { nickname?: string; phone?: string; email?: string; avatar?: string; } |
pushEvent(data: { name: string; color: eventColor; }) => Promise<void>
Param | Type |
---|---|
data | { name: string; color: eventColor; } |
setCompany(data: { name: string; url?: string; description?: string; employment?: [title: string, role: string]; geolocation?: [country: string, city: string]; }) => Promise<void>
Param | Type |
---|---|
data | { name: string; url?: string; description?: string; employment?: [title: string, role: string]; geolocation?: [country: string, city: string]; } |
setInt(data: { key: string; value: number; }) => Promise<void>
Param | Type |
---|---|
data | { key: string; value: number; } |
setString(data: { key: string; value: string; }) => Promise<void>
Param | Type |
---|---|
data | { key: string; value: string; } |
sendMessage(data: { value: string; }) => Promise<void>
Param | Type |
---|---|
data | { value: string; } |
setSegment(data: { segment: string; }) => Promise<void>
Param | Type |
---|---|
data | { segment: string; } |
reset() => Promise<void>
"red" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "brown" | "grey" | "black"
FAQs
Crisp native SDK for capacitor
The npm package capacitor-crisp receives a total of 3 weekly downloads. As such, capacitor-crisp popularity was classified as not popular.
We found that capacitor-crisp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.