onEvent payload doesn't contain up to date "seen" state for groups and stories
Closed this issue · 2 comments
ofreyssinet-ledger commented
Issue tracker is ONLY used for reporting React Native SDK related bugs.
Environment Details
Storyly SDK Version: ---
React Native SDK Version: 1.26.2
Platform:
- Android
- iOS
Device Model: iPhone 13
Device OS Version: iOS 16.1
Additional Info:
Expected Behavior
If I go through stories and look at the Storyly.StoryEvent
events dispatched by onEvent
, their data should be up to date, in particular the value of seen
for a story group and for the stories inside.
Current Behavior
- On iOS, the
seen
state is not up to date at all, for story groups and for stories. It is only up to date in the data passed in the initialonLoad
call. - On Android, the
seen
state is up to date only for stories, not for story groups (for instance this happens when closing a story group while watching the last story of it with the event"StoryGroupClosed"
, or on the event"StoryGroupCompleted"
if the story group switches automatically to the next one.)
Steps to Reproduce
- Instanciate the
Storyly
component. - Go through stories
- Check the value
Storyly.StoryEvent
argument of theonEvent
prop when it gets called. - For story groups / stories that have just been seen,
seen
should be true.
levent-oral commented
Hello @ofreyssinet-ledger ,
We've released storyly-react-native@2.0.0.
seen
state information of story
instance is updated according to event.
Thanks,
ofreyssinet-ledger commented
thank you!