Troubleshoot the mobile SDKs

Fixes for a chat that doesn't open, a badge that doesn't update, and local development connections.

Written by Godswill

The chat doesn't open

  • Check that configure runs before present, with the workspace id from Configure → Chat widget → Install.

  • If chat is switched off for the workspace, the SDK reports it as unavailable (isAvailable is false) and present does 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 configure at app start, not when the customer taps help. The chat has to be running in the background to receive replies.

  • The count is 0 while 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 adb reverse tcp:5181 tcp:5181 and adb reverse tcp:8000 tcp:8000.

"Cleartext HTTP traffic not permitted"

Allow localhost in a debug network security config (Android), or set NSAllowsLocalNetworking (iOS).

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 localhost.

Release builds should never point at localhost. Keep the local widget URL behind a debug check, as each guide shows.

Still need help?Our team is here for you. Send us a message and we’ll get back to you.