android/settings.gradle
android/app/build.gradle
MainApplication.java
:
android/app/src/main/AndroidManifest.xml
:
pod install
.
.xcworkspace
or .xcodeproj
.CelloSDK.xcframework
into your project (enable “Copy items if needed”).AppDelegate.m
, add:
didFinishLaunchingWithOptions
you’ll need to initialize Cello. Add the snippet below using the productId
and token
prod
(Production) (default)sandbox
(Sandbox)plugins
array of your app.json
or app.config.js
:
prebuild
) the native app. If no extra properties are added, defaults will be used.
env
(string): Set to your desired environment, such as prod
, sandbox
. Optional. Defaults to prod
.showFab()
method from the Cello library to present a Floating Action Button (FAB) within your app. This FAB is pre-styled but may not perfectly match your app’s look and feel.
Cello.openWidget()
.
Cello.initialize(productId, token): Promise<Configuration>
Name | Type | Description | Required |
---|---|---|---|
productId | string | Identifier of the product your users will refer | Yes |
token | string | Access token generated for the given user | Yes |
Cello.showFab(): void
Cello.hideFab(): void
Cello.openWidget(): void
Cello.hideWidget(): void
Cello.getActiveUcc(): Promise<{ ucc: string; inviteLink: string; } | null>
ucc
and invite link for the currently logged in user.
Cello.changeLanguage(langCode: string): void
Cello.shutdown(): void