Closed walaankit closed 1 year ago
@walaankit What you have described as a bug is the expected behavior. Raising one event will only send one Native Display Campaign in the response from our server similar to InApp Notifications. There seems to be some mismatch of expectations.
To achieve your use case, it would be recommended you raise multiple events as per the user's behavior and then create specific campaigns for each of these events. All these events can be done on the same screen/launch of the first screen to achieve your use case.
@walaankit If you have more questions, I would suggest that you raise a support ticket to our team via the CleverTap dashboard and mention this GitHub issue to expedite.
@darshanclevertap Thanks fo the clarification!
To achieve your use case, it would be recommended you raise multiple events as per the user's behavior and then create specific campaigns for each of these events. All these events can be done on the same screen/launch of the first screen to achieve your use case.
This unnecessarily increases the number of events that we push to Clevertap. If multiple campaigns can accept the same triggering event, why can't the backend send them together?
As @walaankit mentioned in the first comment -
As per our use case, we want to run multiple native display campaigns on a single triggering event say Home Screen Loaded. These campaigns can have different segments created based on past behaviour. A user may qualify for some of these campaigns and only the images in these campaigns need to be shown to the user on home screen.
This is a pretty generic use case IMHO.
@walaankit @debugger22 I understand the ask but more than an SDK thing, this is a product request as the current implementation serves only one campaign at a time for one event. Hence my request is to raise a support ticket with us so that I can escalate this to the correct team internally.
Have raised the following ticket regarding the same: https://help.clevertap.com/hc/en-us/requests/118170
@walaankit Your CSM will be responding to the support ticket raised. I just wanted to let you know that I'm closing this for now. Please reopen this if you do not get any update on your support ticket within 24-48 hours and I will escalate this internally.
Describe the bug We created multiple native display campaigns on a single event
Home Screen Loaded
. And registeredsetDisplayUnitListener
callback in our activity. When the eventHome Screen Loaded
is pushed, we received only a singleCleverTapDisplayUnit
in theonDisplayUnitsLoaded(units: ArrayList<CleverTapDisplayUnit>?)
callback. This happens even when the user is qualified for multiple Native Display campaigns configured.To Reproduce Steps to reproduce the behavior:
setDisplayUnitListener
in Activity and implement it.Home Screen Loaded
in onCreate of that activityHome Screen Loaded
Expected behavior When where there are multiple native diplay campaings running parallely for which a user qualifies, all the display units of these campaigns should be received in the
onDisplayUnitsLoaded
callback. As event its signature(units: ArrayList<CleverTapDisplayUnit>?)
shows that it can receive a list of units instead of a single one.Screenshots Even your documentation says that you will receive all active native display campaigns after pushing the event.
Environment (please complete the following information):
As per our use case, we want to run multiple native display campaigns on a single triggering event say
Home Screen Loaded
. These campaigns can have different segments created based on past behaviour. A user may qualify for some of these campaigns and only the images in these campaigns need to be shown to the user on home screen.