Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
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.
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
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 AnswerAre you using document.location.assign() and document.history.back()?
Best Answerhttps://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 AnswerThanks! 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 AnswerI'm assuming you're using multiple views (documents)...
Best AnswerNo. 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 AnswerOh; this might be overkill then. You may be able to do what you want just by using an animation (see that blog 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!!
No worries. I shouldn't have assumed multiple views. I doubtless did so because I'm using them myself at the moment.
Best Answer