Troubleshoot the mobile SDKs
Fixes for a chat that doesn't open, a badge that doesn't update, and local development connections.
The chat doesn't open
Check that
configureruns beforepresent, with the workspace id from Configure → Chat widget → Install.If chat is switched off for the workspace, the SDK reports it as unavailable (
isAvailableis false) andpresentdoes nothing.Android release builds made with Flutter need
<uses-permission android:name="android.permission.INTERNET" />in the main manifest.
The unread badge doesn't change
Call
configureat app start, not when the customer taps help. The chat has to be running in the background to receive replies.The count is
0while the chat is open, and counts replies once it's closed.If greeting pop-ups are on in your widget settings, the greeting counts as one unread message until the customer opens the chat.
The customer's name doesn't show
Call identify after sign-in, before or after configure. The SDK sends it as soon as the chat is ready. After reset, call identify again for the next customer.
Screens don't show in the visitor panel
Call trackScreen (or use .adrianScreen in SwiftUI, or AdrianNavigatorObserver in Flutter) each time a screen appears. Screens show as app://<your app id>/<screen> on the visitor's profile and in Visitors.
Local development doesn't connect
Symptom | Fix |
|---|---|
Blank chat on the Android emulator | Run |
"Cleartext HTTP traffic not permitted" | Allow |
Chat opens but never loads messages | Check that the widget dev server (port 5181) and the Adrian API (port 8000) are both running. |
Works in the simulator, not on a phone | Use your computer's network address instead of |
Release builds should never point at localhost. Keep the local widget URL behind a debug check, as each guide shows.
Was this article helpful?