06-03-2018 13:23
06-03-2018 13:23
I needed a confirmation box for my application and then realized I also needed to create a short conversation with the user. Something along the lines of "Exit? Y/N? -> Save Data? Y/N/C . At this writing the SDK doesn't have a PopUp box like the Alert or Confirm in Javascript.
To fix this, I created a "module" for the FitBit to display a popup box. It's easy to use and easy to add to an existing application. It works fine on the Ionic and will probably work on the Versa but I have not tested it on that watch.
If you need this, you can pull source and instructions at: https://github.com/Skiddy69/Dialog
Rich
Example OK/Cancel Popup
Example Yes/No Popup
Example Yes/No/Cancel Popup
06-05-2018 17:57
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.
06-05-2018 17:57
Very cool!
You might want to update it with some of the popup code here https://dev.fitbit.com/build/guides/user-interface/components/buttons/#popup-with-buttons
Please submit it to the open source directory https://github.com/Fitbit/ossapps
Best Answer06-05-2018 20:34
06-05-2018 20:34
I have to admit I consider that a real compliment coming from you. Thanks.
I'm unsure what code you're referring to that I might want to update to? The only thing that I saw was to change the square button to square button positive and neutral. Which I did. My thinking was to keep the changes to the existing applications to a minimum including the import statements and style sheet changes. With that in mind I settled on the one import I needed for the two types of buttons and styling the objects inline. I am new to coding for the FitBit so any advice is appreciated.
It's not readily obvious to me how to submit to the open source directory. Do I start a "pull request"
Thanks.
Rich
Best Answer03-12-2021 12:37
03-12-2021 12:37
Hi @skiddy56
Do you know if there is a way to achieve the popup in SDK 5?
Best Answer