You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A. When user first time opens the mobile application
Make request to /api/storybooks.json with empty or nillast_updated_at.
Save the response JSON and last_updated_at value in the JSON locally for later use.
Download the thumbnail images for the storybooks whose URL is present in the JSON and display those images on the storybook list screen.
When user touches a storybook thumbnail, download the zip file of assets located at asset_url and save it locally. Unzip the zip file and use storybook_json to play the storybook for the user.
B. When user opens the mobile application for subsequent uses
Make request to api/storybooks.json with last_updated_at value saved in step 2 in scenario A.
The API docs can be found at https://github.com/authorly/subscription-backend/blob/master/docs/api.mkd#storybooks.
Behavior
A. When user first time opens the mobile application
/api/storybooks.jsonwith empty ornillast_updated_at.last_updated_atvalue in the JSON locally for later use.thumbnailimages for the storybooks whose URL is present in the JSON and display those images on the storybook list screen.asset_urland save it locally. Unzip the zip file and usestorybook_jsonto play the storybook for the user.B. When user opens the mobile application for subsequent uses
api/storybooks.jsonwithlast_updated_atvalue saved in step 2 in scenario A.