storylyLoaded method of StorylyListener is called a few times after initialization of Storyly.
If it's a fresh install of the app then the first callback is called with the empty storyGroupList.
For the next cold app launches we get the following sequence of callbacks and the data:
dataSource - LOCAL, storyGroupList - non-empty
dataSource - API, storyGroupList - empty
dataSource - API, storyGroupList - non-empty
We want to analyze the data and check when story groups are empty (for real empty). Because of the issue mentioned before we get the wrong data, since the story groups are almost always non-empty, and the information about their emptiness is incorrect.
Environment Details
Storyly SDK Version: 3.4.2
Android SDK Version: 34
Device Model: It doesn't matter, but it was tested on Samsung S10
Device OS Version: API 33
Additional Info: ---
Expected Behavior
Method storylyLoaded with empty data should be called only if there is no data. From what I know iOS SDK handles it this way.
Current Behavior
Currently the method storylyLoaded with empty storyGroupList is called with storyGroupList after StorylyWidget initialization.
Steps to Reproduce
Implement StorylyListener
Log argument storyGroupList in storylyLoaded method.
storylyLoaded
method ofStorylyListener
is called a few times after initialization of Storyly. If it's a fresh install of the app then the first callback is called with the emptystoryGroupList
. For the next cold app launches we get the following sequence of callbacks and the data:We want to analyze the data and check when story groups are empty (for real empty). Because of the issue mentioned before we get the wrong data, since the story groups are almost always non-empty, and the information about their emptiness is incorrect.
Environment Details
Storyly SDK Version: 3.4.2 Android SDK Version: 34 Device Model: It doesn't matter, but it was tested on Samsung S10 Device OS Version: API 33 Additional Info: ---
Expected Behavior
Method
storylyLoaded
with empty data should be called only if there is no data. From what I know iOS SDK handles it this way.Current Behavior
Currently the method
storylyLoaded
with emptystoryGroupList
is called with storyGroupList after StorylyWidget initialization.Steps to Reproduce
StorylyListener
storyGroupList
instorylyLoaded
method.