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
Hi, when a user tapped bookmark icon within an epub, I save "progression" and "totalProgression" values of tapped position. And these values were stored on remote server. So user can get these infos in different devices in different screen sizes. (iPhone, iPad) .
Imagine the same user reads the same epub and moves between pages.
I want to display a position of an epub as bookmarked whenever the current page info is matched with the previously saved bookmarked info. Is it possible to achieve that with only previously saved "progression" and "totalProgression" values ?
Thanks in advance...
Instead of checking if your progression and currentLocator.locations.progression are exactly the same, you can check if they're close enough to each other (within a small tolerance range).
hi @mickael-menu , thanks for your reply. Got it, so there is no need to keep extra parameter like "position" to achieve the goal I mentioned above right?
Actually I've previously saved data in remote server. Those data do not contains "position" parameter. Only "progression" and "totalProgression". It is important to handle the operation for the previously saved data as well. I do not know whether it is possible to calculate position value out of progression and totalProgression parameters manually. I mean parsing epub files and calculating position value based on progression.
Activity
[-]Display a page as bookmarked to user[/-][+]Display a position as bookmarked to user[/+]mickael-menu commentedon Jun 2, 2025
Instead of checking if your
progressionand currentLocator.locations.progressionare exactly the same, you can check if they're close enough to each other (within a small tolerance range).vedat73 commentedon Jun 3, 2025
hi @mickael-menu , thanks for your reply. Got it, so there is no need to keep extra parameter like "position" to achieve the goal I mentioned above right?
mickael-menu commentedon Jun 3, 2025
No you can and probably should use
position. I thought you were stuck withprogressionandtotalProgression.vedat73 commentedon Jun 4, 2025
Actually I've previously saved data in remote server. Those data do not contains "position" parameter. Only "progression" and "totalProgression". It is important to handle the operation for the previously saved data as well. I do not know whether it is possible to calculate position value out of progression and totalProgression parameters manually. I mean parsing epub files and calculating position value based on progression.