bambuser / bambuser-livevideoshoppingplayer-sdk-ios

This SDK helps you add a Bambuser live shopping player to your UIKit and SwiftUI apps.
8 stars 2 forks source link

At the end of the stream, only latest pinned product shows up at the bottom sheet #15

Closed heldernunesff closed 1 year ago

heldernunesff commented 2 years ago

Hello everyone 👋

We want to ask if it is possible to receive all the products sets at the end of the live stream. So when we tap the view products we can show all the products presented on the live stream.

Thank you so much.

ken-bam commented 2 years ago

Can you possibly use the provideProductData event with the preLoad context for this purpose? Is of course fired earlier in the stream, but if it would be possible for you to keep a list of the product identifiers until the end?

heldernunesff commented 2 years ago

Hello everyone We can use that event but it is possible to have some event to tell me the stream ends? And we have sure the provideProductData at the beginning of the stream receives all the products?

thank you 😊

ken-bam commented 2 years ago

Hi, The updateShowStatus is triggered when a shows status changes. So one could use it together with the LiveVideoShoppingPlayerView.showStatus property to check for the show .ended status.

Regarding the provideProductData, to say for sure I need to check that first, since it is dependent on another api.

ken-bam commented 2 years ago

Sorry for delay in response. So to wrap it up. There is currently no call to fetch all products. But you can make an own list of products using the provideProductData event. If more products are added during the show provideProductData with context preload will be emitted again for the newly added products. Note, if you are interested only in the products presented in the show (the product thumbnails showing up in the stream) you can look for provideProductData with context display and presentationType highlight. There is a though dedicated event for this, but it is currently not implemented in the SDK, but we will add it.

marianamcruz commented 1 year ago

Hello everyone, Just wondering what is the status of this issue? Was this new event already added to the latest SDK version available on our side (version 0.8.1).

ken-bam commented 1 year ago

Hi,

It is not yet released. This requested feature is in development as we speak.

marianamcruz commented 1 year ago

Thank you for the feedback. Please let us know when this is available for us to update.

ken-bam commented 1 year ago

Hi,

In the 0.9.0 release the updateShowStatus event at ShowStatus.ended state has now in the PlayerEventInfo.data json object a products array property containing the products that have been highlighted(presented in the product feed) during the show.