onebear_chat 0.1.2 copy "onebear_chat: ^0.1.2" to clipboard
onebear_chat: ^0.1.2 copied to clipboard

PlatformAndroid

OneBear live-chat SDK for Flutter — wraps the native Android/iOS chat SDKs so a customer app can embed the same OneBear agent-console conversation as every other channel.

0.1.2 #

  • Fix: the chat never connected — the panel sat on "Connection lost" with a Reconnect button that could not succeed. The WebView hosts the panel on its own origin (https://appassets.androidplatform.net), so the SignalR hub's negotiate call is cross-origin, and @microsoft/signalr defaults withCredentials to true — making it a credentialed cross-origin request. The OneBear API's widget CORS policy echoes any origin but deliberately never sends Access-Control-Allow-Credentials (the widget authenticates with a bearer session token and has no cookies to send), so the browser rejected every negotiate response. The bundled panel now connects with withCredentials: false; nothing on that connection needed cookies in the first place (pod affinity rides on a query parameter). Everything that used a plain fetch — session bootstrap, history, greeting — worked throughout, which is why the chat looked alive but could not send or receive.

0.1.1 #

  • Fix: the package is now actually usable. 0.1.0's Android implementation depended on co.gofive.onebear:onebear-chat as an external Maven artifact that was never published to any registry a consumer could reach without extra auth (GofiveCorp/Onebear, the source repo, is private — ruling out JitPack's free tier and making GitHub Packages require a token even for a public repo). This release bundles the native OneBearChat implementation directly into this plugin's own Android source instead, so flutter pub add onebear_chat now works standalone with zero external native dependency beyond public Maven Central/Google artifacts.
  • Documents a Thai-locale (th_TH) Android Gradle Plugin bug in the README's new Troubleshooting section — affected build machines see VerifyException in mergeDebugJavaResource / mergeReleaseJavaResource regardless of what triggered the dependency graph; the fix is a gradle.properties JVM locale override.

0.1.0 #

  • Initial release — Android-only. Wraps sdk/android's OneBearChat native SDK via a Flutter platform channel: configure, identify, setCustomFields, setLanguage, present, logout, plus unreadCount and events streams (chatOpened, chatClosed, newMessageReceived, linkTapped, errorOccurred).
  • iOS is not yet supported — this plugin declares android only in pubspec.yaml's flutter.plugin.platforms, so adding it to an iOS-targeting app fails at flutter pub get rather than at runtime.
0
likes
160
points
0
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

OneBear live-chat SDK for Flutter — wraps the native Android/iOS chat SDKs so a customer app can embed the same OneBear agent-console conversation as every other channel.

Homepage

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on onebear_chat

Packages that implement onebear_chat