How does the Sunset/Sunrise feature work?

The Hue Bridge knows when the sun rises and sets based on the location that your Philips Hue app provides when you create the first routine. There is no need to keep your app open, the Hue bridge will continue to trigger the routines after you set the location and setup a routine.