11-18-2021 09:56
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
11-18-2021 09:56
Is there a way to disable the Swipe right action from accidentally closing an App?
Author | ch, passion for improvement.
Answered! Go to the Best Answer.
07-13-2022 01:07
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
07-13-2022 01:07
11-21-2021 05:41
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
11-21-2021 05:41
How can you prompt the user before closing and if he refuses the close, to return to the App and continue?
Author | ch, passion for improvement.
Best Answer12-13-2021 10:17
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
12-13-2021 10:17
Does anyone know how - its far too easy to accidentally swipe right and the App just closes immediately, can it be stopped from doing this?
One can stop the back button doing this but what is the point if a simple swipe overrides that protection.
Author | ch, passion for improvement.
07-13-2022 01:07
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
08-12-2022 14:26
08-12-2022 14:26
How can I leverage this code so that when my user swipes right, I don't get a black background but the text(i.e) I was showing before?
Best Answer08-12-2022 14:28 - edited 08-12-2022 14:29
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
08-12-2022 14:28 - edited 08-12-2022 14:29
Are you using document.location.assign() and document.history.back()?
Best Answer08-12-2022 15:11
08-12-2022 15:11
Actually no. Is there some example of it somewhere?
Best Answer08-12-2022 15:19
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
08-12-2022 15:19
https://dev.fitbit.com/blog/ Fitbit OS SDK 5.0.
The reference doco might also help.
You may find that you need an opaque background to one of your views, so that two don't get displayed simultaneously.
Best Answer08-12-2022 15:41
08-12-2022 15:41
Thanks! I'll try that. I just tried the document.location.assign and it messes up the whole view and reactivates all components I have previously deactivated.
Best Answer08-12-2022 15:45
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
08-12-2022 15:45
I'm assuming you're using multiple views (documents)...
Best Answer08-12-2022 15:48
08-12-2022 15:48
No. I'm using just one but I might have to transition to multiple views that are dependent to the situation the app is in when swipe happens.
Best Answer08-12-2022 15:50
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
08-12-2022 15:50
Oh; this might be overkill then. You may be able to do what you want just by using an animation (see that blog post).
08-12-2022 16:05
08-12-2022 16:05
That worked great!! Thanks! I was so worried I have to do multiple views. I'm surely considering re-doing the app and give it a more sensible structure since it's becoming bigger than it how it was conceived. Thanks!!
08-12-2022 16:19
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
08-12-2022 16:19
No worries. I shouldn't have assumed multiple views. I doubtless did so because I'm using them myself at the moment.
Best Answer