Use the native Freshchat SDK (iOS / Android) in Titanium. All APIs are 100 % cross-platform! 🤘
No setup required
Add the following contents to your [app]/platform/android/build.gradle
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
See the app.js for a full-featured example!
Initializes the SDK. The domain
is optional.
Identifies a user with Freshchat for usage with an external user ID (e.g. of your own database)
Signs in a user with Freshchat. All values are optional!
Updates a given user property (key
) by it's value
.
Resets a user in Freshchat
Receives the restore ID of the user (may be null if not defined)
Tracks an event by a given eventName
. The parameters
are optional.
Opens the conversation list.
Registers the given fcmToken
with Freshchat. On iOS, this is handled internally by
the corresponding didRegisterForRemoteNotificationsWithDeviceToken:
selector of the
UIApplicationDelegate
.
Called when the restore ID has been received by the module. It includes the
keys restoreID
and externalID
which can both be optional.
Hans Knöchel
MIT