alan-ai / alan-sdk-flutter

Conversational AI SDK for Flutter to enable text and voice conversations with actions (iOS and Android)
https://alan.app
1.8k stars 39 forks source link

Alan button hide does not work #16

Closed Merculiar closed 11 months ago

Merculiar commented 1 year ago

I want to hide the alan button in my project and activate/deactivate it programmatically with my own button (with activate/deactivate methods). Every time I call to activate, the button is hidden and works fine, but when I call deactivate, the button appears again and the hide method does nothing.

snyuryev commented 1 year ago

Hi @Merculiar,

Could you provide steps how we can reproduce this issue? What version of AlanSDK do you use? What platform do you use? iOS or Android?

Merculiar commented 1 year ago

AlanSdk version 4.1.1, Android platform. 1) AlanVoice.addButton 2) AlanVoice.hideButton(); (on this step floating Alan button is hidden) 3) Made custom button with AlanVoice.activate()/AlanVoice.deactivate() functionality 4) Each time I press AlanVoice.deactivate() floating Alan button appears again

snyuryev commented 1 year ago

Hi @Merculiar This issue will be fixed with next plugin update.

snyuryev commented 1 year ago

hi @Merculiar new version of plugin (v 4.2.0) is released https://pub.dev/packages/alan_voice/versions/4.2.0 Hope that will help with this issue

Merculiar commented 11 months ago

Just spotted that I can hide it in the settings of Alan Studio! Thanks, closing.