exponea / exponea-android-sdk

MIT License
17 stars 16 forks source link

InAppMessageCallback: inAppMessageAction interaction value is wrong #77

Closed janhofman closed 3 weeks ago

janhofman commented 1 month ago

There's a incorrect behavior of

interface InAppMessageCallback
fun inAppMessageAction(message: InAppMessage, button: InAppMessageButton?, interaction: Boolean, context: Context)

When receiving callback after clicking on button within InAppMessage interaction equals false if the button is setup with type Cancel.

Screenshot 2024-09-20 at 12 09 47

I've compared this with iOS sdk and it behaves as expected. intaraction is true when clicking on the button

adam1929 commented 4 weeks ago

Thank you @janhofman for reporting. Please which In-app message type you used? HTML, modal, etc. Thank you

janhofman commented 4 weeks ago

@adam1929 Modal, configuration looks like this: Screenshot 2024-09-24 at 11 39 05 Screenshot 2024-09-24 at 11 36 47

adam1929 commented 3 weeks ago

Hi @janhofman please try to integrate new Android SDK 4.0.0, it also contains new InApp callback interface, more precise for your usage. I tried modal In-app with Cancel button and seems tracked fine - interaction true, action close, and (new feature) text with text of cancel button. Please feel free to reopen issue if still occurring in your setup and usage. Thank you