exponea / exponea-android-sdk

MIT License
17 stars 16 forks source link

In App Messaging still shows in device even if it was stopped in Dashboard #56

Closed janwelocampo closed 1 year ago

janwelocampo commented 1 year ago

Hi,

I have this issue wherein the in app messaging still shows even if I stop it on Dashboard. I am just using this code for sending a track event val properties = PropertiesList(hashMapOf(Pair("custom_event", true))) // Track the event. Exponea.trackEvent( properties = properties, timestamp = null, eventType = "event type here" )

I also initialized the SDK on my Application class.

I think there is some cache happening in SDK. Can I clear it on logout or closing of my app? What is the function name for that?

I can't also fetch the new UI in case I edit it on dashboard (Let say I change the banner title or image body). To fetch it, I need to uninstall/reinstall or clear data the application.

I also observe that if you need to delete/ reinstall the app to stop the in app dialog from showing.

adam1929 commented 1 year ago

Thank you, we find that SDK is not clearing a InApp messages cache in case, that you got empty response after (previously retrieved) non-empty InApp list. You are able to clean this cache by calling SDK anonymize() method. That will clear all caches, but allows you to call 'identifyCustomer' again to fetch empty inapp messages list. Of course we will fix this. Thank you