{"id":13795427,"url":"https://github.com/Cap-go/capacitor-crisp","last_synced_at":"2025-05-12T22:30:58.986Z","repository":{"id":49323083,"uuid":"429967671","full_name":"Cap-go/capacitor-crisp","owner":"Cap-go","description":"Crisp native SDK for capacitor","archived":false,"fork":false,"pushed_at":"2025-05-01T00:57:51.000Z","size":994,"stargazers_count":8,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-05T07:29:16.085Z","etag":null,"topics":["android","capacitor","capacitor-plugin","crisp","ionic","ios"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/capacitor-crisp","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cap-go.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"Cap-go","patreon":null,"open_collective":"capgo","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-11-20T00:08:45.000Z","updated_at":"2025-04-28T05:30:12.000Z","dependencies_parsed_at":"2023-07-16T07:52:24.807Z","dependency_job_id":"ade722b0-a60b-4d03-a79a-a56a02d68708","html_url":"https://github.com/Cap-go/capacitor-crisp","commit_stats":{"total_commits":229,"total_committers":3,"mean_commits":76.33333333333333,"dds":0.554585152838428,"last_synced_commit":"1d4f9e86eefbec73cce75118a20da87abc534e2b"},"previous_names":["riderx/capacitor-crisp"],"tags_count":113,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-crisp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-crisp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-crisp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-crisp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cap-go","download_url":"https://codeload.github.com/Cap-go/capacitor-crisp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253293399,"owners_count":21885252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","capacitor","capacitor-plugin","crisp","ionic","ios"],"created_at":"2024-08-03T23:00:56.585Z","updated_at":"2025-05-12T22:30:58.521Z","avatar_url":"https://github.com/Cap-go.png","language":"Swift","funding_links":["https://github.com/sponsors/Cap-go","https://opencollective.com/capgo"],"categories":["Plugins","Capgo Capacitor Plugins","[Capgo plugins](https://capgo.app/)"],"sub_categories":["Community Plugins","Communication \u0026 Messaging"],"readme":"# capacitor-crisp\n \u003ca href=\"https://capgo.app/\"\u003e\u003cimg src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/\u003e\u003c/a\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch2\u003e\u003ca href=\"https://capgo.app/?ref=plugin\"\u003e ➡️ Get Instant updates for your App with Capgo 🚀\u003c/a\u003e\u003c/h2\u003e\n  \u003ch2\u003e\u003ca href=\"https://capgo.app/consulting/?ref=plugin\"\u003e Fix your annoying bug now, Hire a Capacitor expert 💪\u003c/a\u003e\u003c/h2\u003e\n\u003c/div\u003e\nCrisp native SDK for capacitor\n\n## Install\n\n```bash\nnpm install @capgo/capacitor-crisp\nnpx cap sync\n```\n\n## Init\n\nCall configure in your code Before any other method :\n```\nimport { CapacitorCrisp } from '@capgo/capacitor-crisp';\n\nCapacitorCrisp.configure({websiteID: '******-****-****-****-********'})\n```\n### iOS\n\nTo enable your users to take and upload photos to the chat as well as download photos to their photo library, add :\n\nPrivacy - Camera Usage Description (NSCameraUsageDescription)\n\nPrivacy - Photo Library Additions Usage Description (NSPhotoLibraryAddUsageDescription) \n\nto your app's Info.plist.\n\n### Android Integration\nNothing special to do.\n\n\n## Open chatbox\n\n```\nimport { CapacitorCrisp } from '@capgo/capacitor-crisp';\n\nCapacitorCrisp.openMessenger()\n```\n## API\n\n\u003cdocgen-index\u003e\n\n* [`configure(...)`](#configure)\n* [`openMessenger()`](#openmessenger)\n* [`setTokenID(...)`](#settokenid)\n* [`setUser(...)`](#setuser)\n* [`pushEvent(...)`](#pushevent)\n* [`setCompany(...)`](#setcompany)\n* [`setInt(...)`](#setint)\n* [`setString(...)`](#setstring)\n* [`sendMessage(...)`](#sendmessage)\n* [`setSegment(...)`](#setsegment)\n* [`reset()`](#reset)\n* [Type Aliases](#type-aliases)\n\n\u003c/docgen-index\u003e\n\n\u003cdocgen-api\u003e\n\u003c!--Update the source file JSDoc comments and rerun docgen to update the docs below--\u003e\n\n### configure(...)\n\n```typescript\nconfigure(data: { websiteID: string; }) =\u003e Promise\u003cvoid\u003e\n```\n\n| Param      | Type                                |\n| ---------- | ----------------------------------- |\n| **`data`** | \u003ccode\u003e{ websiteID: string; }\u003c/code\u003e |\n\n--------------------\n\n\n### openMessenger()\n\n```typescript\nopenMessenger() =\u003e Promise\u003cvoid\u003e\n```\n\n--------------------\n\n\n### setTokenID(...)\n\n```typescript\nsetTokenID(data: { tokenID: string; }) =\u003e Promise\u003cvoid\u003e\n```\n\n| Param      | Type                              |\n| ---------- | --------------------------------- |\n| **`data`** | \u003ccode\u003e{ tokenID: string; }\u003c/code\u003e |\n\n--------------------\n\n\n### setUser(...)\n\n```typescript\nsetUser(data: { nickname?: string; phone?: string; email?: string; avatar?: string; }) =\u003e Promise\u003cvoid\u003e\n```\n\n| Param      | Type                                                                                 |\n| ---------- | ------------------------------------------------------------------------------------ |\n| **`data`** | \u003ccode\u003e{ nickname?: string; phone?: string; email?: string; avatar?: string; }\u003c/code\u003e |\n\n--------------------\n\n\n### pushEvent(...)\n\n```typescript\npushEvent(data: { name: string; color: eventColor; }) =\u003e Promise\u003cvoid\u003e\n```\n\n| Param      | Type                                                                        |\n| ---------- | --------------------------------------------------------------------------- |\n| **`data`** | \u003ccode\u003e{ name: string; color: \u003ca href=\"#eventcolor\"\u003eeventColor\u003c/a\u003e; }\u003c/code\u003e |\n\n--------------------\n\n\n### setCompany(...)\n\n```typescript\nsetCompany(data: { name: string; url?: string; description?: string; employment?: [title: string, role: string]; geolocation?: [country: string, city: string]; }) =\u003e Promise\u003cvoid\u003e\n```\n\n| Param      | Type                                                                                                                                                          |\n| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| **`data`** | \u003ccode\u003e{ name: string; url?: string; description?: string; employment?: [title: string, role: string]; geolocation?: [country: string, city: string]; }\u003c/code\u003e |\n\n--------------------\n\n\n### setInt(...)\n\n```typescript\nsetInt(data: { key: string; value: number; }) =\u003e Promise\u003cvoid\u003e\n```\n\n| Param      | Type                                         |\n| ---------- | -------------------------------------------- |\n| **`data`** | \u003ccode\u003e{ key: string; value: number; }\u003c/code\u003e |\n\n--------------------\n\n\n### setString(...)\n\n```typescript\nsetString(data: { key: string; value: string; }) =\u003e Promise\u003cvoid\u003e\n```\n\n| Param      | Type                                         |\n| ---------- | -------------------------------------------- |\n| **`data`** | \u003ccode\u003e{ key: string; value: string; }\u003c/code\u003e |\n\n--------------------\n\n\n### sendMessage(...)\n\n```typescript\nsendMessage(data: { value: string; }) =\u003e Promise\u003cvoid\u003e\n```\n\n| Param      | Type                            |\n| ---------- | ------------------------------- |\n| **`data`** | \u003ccode\u003e{ value: string; }\u003c/code\u003e |\n\n--------------------\n\n\n### setSegment(...)\n\n```typescript\nsetSegment(data: { segment: string; }) =\u003e Promise\u003cvoid\u003e\n```\n\n| Param      | Type                              |\n| ---------- | --------------------------------- |\n| **`data`** | \u003ccode\u003e{ segment: string; }\u003c/code\u003e |\n\n--------------------\n\n\n### reset()\n\n```typescript\nreset() =\u003e Promise\u003cvoid\u003e\n```\n\n--------------------\n\n\n### Type Aliases\n\n\n#### eventColor\n\n\u003ccode\u003e\"red\" | \"orange\" | \"yellow\" | \"green\" | \"blue\" | \"purple\" | \"pink\" | \"brown\" | \"grey\" | \"black\"\u003c/code\u003e\n\n\u003c/docgen-api\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCap-go%2Fcapacitor-crisp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCap-go%2Fcapacitor-crisp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCap-go%2Fcapacitor-crisp/lists"}