Or if not, you would need to make an app for your phone. If you haven't done anything like that before then you could look at DroidScript - it might be a good way to get started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
To do that, you could potentially use Eddystone: http://www.espruino.com/Puck.js+Eddystone
Or if not, you would need to make an app for your phone. If you haven't done anything like that before then you could look at DroidScript - it might be a good way to get started