Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Confirmation Message / Dialog Box / PopUp Box

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 PopupExample OK/Cancel PopupExample Yes/No PopupExample Yes/No PopupExample Yes/No/Cancel PopupExample Yes/No/Cancel Popup

 

Best Answer
3 REPLIES 3

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 Answer
0 Votes

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 Answer
0 Votes

Hi @skiddy56 

Do you know if there is a way to achieve the popup in SDK 5? 

Best Answer
0 Votes