11-18-2021 09:56
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
07-13-2022 01:07
11-21-2021 05:41
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.
12-13-2021 10:17
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
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?
08-12-2022 14:28 - edited 08-12-2022 14:29
08-12-2022 14:28 - edited 08-12-2022 14:29
Are you using document.location.assign() and document.history.back()?
08-12-2022 15:11
08-12-2022 15:11
Actually no. Is there some example of it somewhere?
08-12-2022 15:19
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.
08-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.
08-12-2022 15:45
08-12-2022 15:45
I'm assuming you're using multiple views (documents)...
08-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.
08-12-2022 15:50
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
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.