onebear_chat 0.1.2
onebear_chat: ^0.1.2 copied to clipboard
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'snegotiatecall is cross-origin, and@microsoft/signalrdefaultswithCredentialstotrue— making it a credentialed cross-origin request. The OneBear API's widget CORS policy echoes any origin but deliberately never sendsAccess-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 withwithCredentials: false; nothing on that connection needed cookies in the first place (pod affinity rides on a query parameter). Everything that used a plainfetch— 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-chatas 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 nativeOneBearChatimplementation directly into this plugin's own Android source instead, soflutter pub add onebear_chatnow 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 seeVerifyExceptioninmergeDebugJavaResource/mergeReleaseJavaResourceregardless of what triggered the dependency graph; the fix is agradle.propertiesJVM locale override.
0.1.0 #
- Initial release — Android-only. Wraps
sdk/android'sOneBearChatnative SDK via a Flutter platform channel:configure,identify,setCustomFields,setLanguage,present,logout, plusunreadCountandeventsstreams (chatOpened,chatClosed,newMessageReceived,linkTapped,errorOccurred). - iOS is not yet supported — this plugin declares
androidonly inpubspec.yaml'sflutter.plugin.platforms, so adding it to an iOS-targeting app fails atflutter pub getrather than at runtime.