How to save information when app is closed and reopened

I have an app that prints to bluetooth printers.
Each printer has its own unique MAC address.
I currently enter each MAC address during design time for each different printer.
Is there a way for the user, the first time they open the app, to enter the MAC address once and never have to again?

Have a look at localStorage - it does just what you need.