capacitor-kore-botsdk
v1.0.1
Published
Capacitor bridge for the Kore.ai native Bot SDK.
Downloads
300
Readme
Kore Bot SDK Capacitor Plugin
This project is the Capacitor-native replacement for the Cordova wrapper in
../OutSystems. It reuses the existing Kore Android and iOS SDK source trees
and replaces only the JavaScript/native bridge.
Public API
import { KoreBotPlugin } from 'capacitor-kore-botsdk';
await KoreBotPlugin.initialize({ config });
await KoreBotPlugin.show({ config });
await KoreBotPlugin.getChatWindow({ config });The public methods are compatible with the existing OutSystems actions:
initialize({ config })show({ config })getChatWindow({ config })getPlatformVersion()addListener('koreBotEvent', listener)
Build
Install the matching Capacitor core and TypeScript toolchain for the ODC/MABS version, then run:
npm install
npm run typecheck
npm run buildThe Android module is a single library module. The Kore SDK source modules are merged into it so the plugin can be consumed by a Capacitor host without the nested Cordova Gradle project structure.
The iOS module uses CocoaPods and the vendored KoreBotSDK podspec. Run pod
installation from the generated Capacitor host project before building iOS.
ODC integration
Use the Capacitor plugin package and ODC's current Capacitor extensibility
configuration schema. Do not reuse the Cordova plugin.xml configuration.
The OutSystems JavaScript actions should call
window.Capacitor.Plugins.KoreBotPlugin or the bundled registerPlugin
entrypoint, not cordova/exec or cordova.plugins.korebotplugin.
