{"id":51579996,"url":"https://github.com/erxes/flutter-erxes-sdk","last_synced_at":"2026-07-11T05:02:04.780Z","repository":{"id":367252919,"uuid":"1279953407","full_name":"erxes/flutter-erxes-sdk","owner":"erxes","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-25T07:55:46.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-25T08:21:24.311Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erxes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-25T06:31:49.000Z","updated_at":"2026-06-25T07:55:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/erxes/flutter-erxes-sdk","commit_stats":null,"previous_names":["erxes/flutter-erxes-sdk"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/erxes/flutter-erxes-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erxes%2Fflutter-erxes-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erxes%2Fflutter-erxes-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erxes%2Fflutter-erxes-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erxes%2Fflutter-erxes-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erxes","download_url":"https://codeload.github.com/erxes/flutter-erxes-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erxes%2Fflutter-erxes-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35351426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-11T02:00:05.354Z","response_time":104,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-11T05:02:03.987Z","updated_at":"2026-07-11T05:02:04.774Z","avatar_url":"https://github.com/erxes.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# erxes_flutter_sdk\n\nFlutter plugin for the [Erxes](https://erxes.io) messenger. It wraps the native\nErxes SDKs — `MessengerSDK` (iOS) and `io.github.munkhorgilb:messenger-sdk`\n(Android) — behind one idiomatic Dart API built on platform channels.\n\n\u003e **Repository:** `erxes-flutter-sdk` · **Package name:** `erxes_flutter_sdk`\n\u003e (pub package names use `snake_case`).\n\n## Platform support\n\n| Feature | iOS | Android |\n| --- | :---: | :---: |\n| Chat mode (full screen) | ✅ | ✅ |\n| Voice messages | ✅ | ✅ |\n| `customData` on user | ✅ | ❌ (ignored by native SDK) |\n\nThis plugin targets **chat mode** only.\n\n## Install\n\n```yaml\ndependencies:\n  erxes_flutter_sdk:\n    git:\n      url: https://github.com/Munkhorgilb/flutter-sdk.git\n```\n\n### iOS setup\n\n- Minimum iOS **16.0**, Swift **5.9**.\n- The underlying `erxes-ios-sdk` ships to CocoaPods as `ErxesMessengerSDK` 0.30.14\n  and is pulled in automatically on `pod install` — no extra setup needed. (SPM\n  host apps are still supported via the bundled `Package.swift`.)\n- For voice messages, add to `ios/Runner/Info.plist`:\n\n  ```xml\n  \u003ckey\u003eNSMicrophoneUsageDescription\u003c/key\u003e\n  \u003cstring\u003eUsed to record voice messages in support chat.\u003c/string\u003e\n  \u003ckey\u003eNSSpeechRecognitionUsageDescription\u003c/key\u003e\n  \u003cstring\u003eUsed to transcribe voice messages in support chat.\u003c/string\u003e\n  ```\n\n### Android setup\n\n- Minimum `minSdk` **24**, Java/Kotlin JVM target **17**.\n- The native SDK (`io.github.munkhorgilb:messenger-sdk`) is pulled from Maven\n  Central automatically.\n- Release builds: the plugin ships consumer ProGuard rules that keep Material\n  icon and Erxes SDK classes used to resolve action icons by name.\n\n## Usage\n\n```dart\nimport 'package:erxes_flutter_sdk/erxes_flutter_sdk.dart';\n\n// Listen for header / drawer action taps.\nfinal sub = ErxesMessenger.onAction.listen((id) {\n  if (id == 'close') Navigator.of(context).pop();\n});\n\nawait ErxesMessenger.configure(\n  integrationId: 'YOUR_INTEGRATION_ID',\n  endpoint: 'https://yourcompany.erxes.io', // or serverUrl / subDomain\n  user: const ErxesUser(name: 'Jane Doe', email: 'user@example.com'),\n  homeActions: const [\n    ErxesAction(id: 'close', title: 'Close', iosIcon: 'xmark', androidIcon: 'Close'),\n  ],\n);\n```\n\nSee [`example/`](example/) for a full settings → support → chat flow.\n\n## API\n\n| Method | Description |\n| --- | --- |\n| `configure({...})` | Configure and (in chat mode) present the messenger. |\n| `setUser(ErxesUser)` | Update the current customer identity. |\n| `clearUser()` | Clear the current customer identity. |\n| `showMessenger()` | Present the chat messenger UI. |\n| `hideMessenger()` | Dismiss the messenger (no-op on Android). |\n| `onAction` | `Stream\u003cString\u003e` of tapped action ids. |\n| `onReady` | `Stream\u003cvoid\u003e` emitted when the messenger is ready. |\n\n### Models\n\n- `ErxesUser({ email, phone, name, customData })`\n- `ErxesAction({ id, title, iosIcon, androidIcon })`\n\n## Troubleshooting\n\n- **iOS build can't find `MessengerSDK`** — run `pod install` from `ios/` (or\n  `flutter clean` and rebuild) so CocoaPods fetches `ErxesMessengerSDK`.\n- **Android action icons missing in release** — confirm minification didn't strip\n  icon classes; the bundled `consumer-rules.pro` should cover this.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferxes%2Fflutter-erxes-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferxes%2Fflutter-erxes-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferxes%2Fflutter-erxes-sdk/lists"}