Integrates Freshchat with your Capacitor App
Only implemented the following methods:
init
updateUser
updateUserProperties
showConversations
showFAQs
npm install https://github.com/viveapp/capacitor-plugin-freshchat.git
npx cap sync
-
Android:
- Setup Freshchat in your Android project
- Open Android project, in top-level build.gradle within buildScript section, add
ext.kotlin_version = '1.7.0'
; - In top-level variables.gradle, within ext section add
freshchatVersion = '5.1.0'
-
iOS: Open XCode, open Pods on your App level, select FreshchatCapacitor on targets list, navigate to Build Phases, find Link Binary With Libraries section, and add FreshchatSDK.xcfrmework there;
initialize(...)
updateUser(...)
updateUserProperties(...)
showConversations()
showFAQs()
- Interfaces
- Type Aliases
initialize(options: InitOptions) => Promise<void>
Initialize the Freshchat SDK
Param | Type |
---|---|
options |
InitOptions |
updateUser(options: UpdateUserOptions) => Promise<void>
Param | Type |
---|---|
options |
UpdateUserOptions |
updateUserProperties(options: Record<string, unknown>) => Promise<void>
Param | Type |
---|---|
options |
Record<string, unknown> |
showConversations() => Promise<void>
showFAQs() => Promise<void>
Prop | Type |
---|---|
appId |
string |
appKey |
string |
Prop | Type |
---|---|
firstName |
string |
lastName |
string |
email |
string |
phone |
{ countryCode: string; number: string; } |
Construct a type with a set of properties K of type T
{
[P in K]: T;
}