Netvent/storyly-sdk

onEvent payload doesn't contain up to date "seen" state for groups and stories

Closed this issue · 2 comments

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 initial onLoad 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

  1. Instanciate the Storyly component.
  2. Go through stories
  3. Check the value Storyly.StoryEvent argument of the onEvent prop when it gets called.
  4. For story groups / stories that have just been seen, seen should be true.

Hello @ofreyssinet-ledger ,

We've released storyly-react-native@2.0.0.

seen state information of story instance is updated according to event.

Thanks,

thank you!