Just to add to this - if you don't want to install anything on your phone you might be able to set the Puck up as a BLE HID device (http://www.espruino.com/Puck.js+Keyboard) - in which case the phone can be set to automatically connect to it when in range (and you can detect that from the Puck).
You probably want it to appear as a Multimedia key device though since appearing as a normal keyboard can stop the on-screen keyboard displaying on some phones :)
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.
Just to add to this - if you don't want to install anything on your phone you might be able to set the Puck up as a BLE HID device (http://www.espruino.com/Puck.js+Keyboard) - in which case the phone can be set to automatically connect to it when in range (and you can detect that from the Puck).
You probably want it to appear as a Multimedia key device though since appearing as a normal keyboard can stop the on-screen keyboard displaying on some phones :)