Open shahalR opened 10 months ago
Any updates regarding this?
Hi @DasserBasyouni @shahalR
I've had problem with suggestions method suggestions
in place autocomplete. I spent two days, but crucial was adding project dependencies:
implementation "com.mapbox.search:base:$searchApiVersion"
implementation "com.mapbox.search:mapbox-search-android-native:$searchNativeVersion"
In my case
searchApiVersion = '2.3.1'
searchNativeVersion = '2.2.1'
Every release has native lib version described, it must match.
Integrated following Mapbox dependencies
And initialized AddressAutofill with
addressAutofill = AddressAutofill.create(getString(R.string.mapbox_access_token))
But while using
suggestions()
to get address list, gettingval addresses = addressAutofill.suggestions(searchQuery!!, AddressAutofillOptions())
Is there any work around this ? or do I need to use the API feature ?