Guides / Building Search UI / Troubleshooting

It’s recommended to use the Kotlin API client, which is better suited for Android development.

Does Algolia support Dart and Flutter?

We don’t have an official API client for Dart. However, there are many options that you can go with:

  • Use the Algolia REST API directly. Keep in mind that there’s no retry strategy at the API level, and no guaranteed SLA.
  • Use an unofficial Dart API client. Keep in mind that we don’t provide any support for these, and there is no guaranteed SLA.
  • Use platform channels for integrating with iOS and Android hosts, then use the official Swift and Android clients we provide.

You can also check this tutorial to integrate Algolia with Flutter and Firestore.

It’s recommended to use the Kotlin API client, which is better suited for Android development.

Does Algolia support React Native?

Yes, we support React Native with our React InstantSearch library.

It’s recommended to use the Kotlin API client, which is better suited for Android development.

Why are Insights events not appearing on my dashboard?

There’s a slight delay because we send events in batches. We do this to minimize the number of requests and network consumption on mobile. You can change the batch size if you need to. Also note that there’s some processing on the server, so it could take a few extra minutes for events to appear. Finally, you can else enable logging for more visibility on when we send the events.

It’s recommended to use the Kotlin API client, which is better suited for Android development.

Why am I getting “JsonDecodingException” issues?

Make sure you update to version ^2.4.0 as we have improved our serialization strategy and should have solved all issues.

It’s recommended to use the Kotlin API client, which is better suited for Android development.

I am not seeing any results nor errors when trying out InstantSearch, what can I do?

You need to subscribe to errors first. Try and subscribe to the searcher’s errors to figure out what is going on. There could, for example, be serialization issues.

1
2
3
searcher.error.subscribePast {
    Log.i("e", it.toString())
}

It’s recommended to use the Kotlin API client, which is better suited for Android development.

How can I see the logs for the network requests and the applied filters?

To monitor the network requests, you can go to your Logcat and type HttpClient.

To see the currently applied filters, you can subscribe to the filterState like this:

1
2
3
4
filterState.filters.subscribe {
    val filterString = FilterGroupsConverter.SQL(it.toFilterGroups())
    Log.i("filterState", filterString ?: "" )
}

It’s recommended to use the Kotlin API client, which is better suited for Android development.

How can I set up a banner?

To display a banner, you need to listen to the searcher’s result update, extract the userData which contains the banner information, and then use that information to update your UI.

1
2
3
4
searcher.response.subscribePast { response ->
    val msg = response?.userDataOrNull?.firstOrNull()?.getPrimitiveOrNull("promo_content")?.content
    // display msg in a banner if it is available
}

Did you find this page helpful?