Android widget troubleshooting
Use a test widget, SDK callbacks, and Logcat to diagnose missing stories, playback issues, and visibility events.
Start with a known widget
Open the screen with a public demo widget or an unfiltered Studio widget. Check that thumbnails appear and that you can open a story. Then try the same screen with the Team ID and alias you want to diagnose. The first callback that differs tells you where to start.
See which step the SDK reached
Attach the listener before assigning init, then run a debug build and filter Logcat by JoinWidget. The example uses a Bubble from an Activity layout. A Card uses the same callbacks.
import android.util.Log
import com.joinstoriessdk.androidsdk.JOINStoriesInit
import com.joinstoriessdk.androidsdk.JOINStoriesListener
import com.joinstoriessdk.androidsdk.ui.BubbleTriggerView
fun diagnoseWidget(widget: BubbleTriggerView, alias: String) {
widget.joinListener = object : JOINStoriesListener {
override fun onTriggerFetchSuccess(itemCount: Int) {
Log.d("JoinWidget", "Loaded $itemCount items")
}
override fun onTriggerFetchEmpty() {
Log.d("JoinWidget", "No matching stories")
}
override fun onTriggerFetchError(errorMessage: String) {
Log.d("JoinWidget", "Load error: $errorMessage")
}
override fun onPlayerLoaded() {
Log.d("JoinWidget", "Playback started")
}
}
widget.init = JOINStoriesInit(alias = alias)
}
Match the symptom to the next check
| Observation | What to check |
|---|---|
| No callback | Check the Application registered in the manifest, SDK initialization, the Activity that hosts the view and the order of listener registration and widget initialization. |
| Empty callback | Verify the widget and story are published. Compare the baseline with the target alias, audience keys, language and product ID. Hide the section when empty. Repeat online if the device has no cached stories. |
| Fetch error | Record the exact message. Check connectivity and the Team ID / widget alias pair. On a product page, check that the widget uses Product Matcher and that its productId is present. |
| Success with items, but no widget visible | Inspect the view bounds, parent visibility, clipping and placement in the scrolling container. Check thumbnail loading. |
| Widget visible, but no 75% impression | Check the measured event, alias, how much of the widget is visible and thumbnail readiness. Compare a stationary test with a scrolling list. See the analytics guide. |
| Tap does not open the player | Use the Activity context for the widget or standalone call. Check the alias and record onPlayerFetchError or onPlayerLoaded. |
| Old content after login or product change | On an already loaded view, update init and call refresh() once. Check the new request context and compare with the rules published in Studio. |
For a runnable diagnostics screen, see the XML example or Compose example. To inspect the analytics payload alongside the fetch callback, see widget error events.
Before reporting an issue
Include the steps to reproduce the issue, the exact callback or error, and what you expected to see. Give the SDK and Android versions, the screen, the widget alias and format, and whether you use XML or Compose.
Say whether the same steps fail with the test widget and which builds are affected (debug, minified release, or both). Remove credentials and user identifiers from any logs you share.
See also the SDK setup and widget reference, audience targeting guide, and shopping guide.
Updated about 21 hours ago
