I have a view that needs to have some values updated after the view gets re-loaded after a Swipe Back event. When the page is re-loaded its 'start' or 'upload' functions are never called so I can't update any values. When a view is re-loaded via the Swipe Back event, is there a way to force a function call? Or is there something like a 'onReload' event that I can attach an EventListener to?
Answered! Go to the Best Answer.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
You should be able to capture the beforeunload event, then call your other functions.
https://dev.fitbit.com/blog/2020-09-24-announcing-fitbit-os-sdk-5.0/#swipe-back
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
You should be able to capture the beforeunload event, then call your other functions.
https://dev.fitbit.com/blog/2020-09-24-announcing-fitbit-os-sdk-5.0/#swipe-back
Best Answer
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
Hi, @DanMacLeod - Did you master this? After the beforeunload is triggered and preventdefault issued the screen blanks. Is there a way just to ignore the Swipe back and continue without the need for animate?
In other words can you carry on as if the swipe back has not been performed without reloading the app.
Author | ch, passion for improvement.
Best Answer
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
I'm trying to stay on the same display/view rather than unloading the App when a swipe to the right is performed - is this possible?
Author | ch, passion for improvement.
Best Answer