11-18-2021 09:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


11-18-2021 09:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
Accepted Solutions
07-13-2022 01:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-13-2022 01:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
11-21-2021 05:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


11-21-2021 05:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


12-13-2021 10:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-13-2022 01:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
08-12-2022 14:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-12-2022 14:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-12-2022 14:28 - edited 08-12-2022 14:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Are you using document.location.assign() and document.history.back()?
Gondwana Software

08-12-2022 15:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-12-2022 15:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Actually no. Is there some example of it somewhere?

08-12-2022 15:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-12-2022 15:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
Gondwana Software

08-12-2022 15:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-12-2022 15:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-12-2022 15:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'm assuming you're using multiple views (documents)...
Gondwana Software

08-12-2022 15:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-12-2022 15:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-12-2022 15:50
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Oh; this might be overkill then. You may be able to do what you want just by using an animation (see that blog post).
Gondwana Software
08-12-2022 16:05
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-12-2022 16:05
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-12-2022 16:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
No worries. I shouldn't have assumed multiple views. I doubtless did so because I'm using them myself at the moment.
Gondwana Software

