Created
February 25, 2015 07:27
-
-
Save konsumer/38876850db68aff2ef4e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the UUID of your pebble app | |
var uuid = '39457783-362f-4343-8846-7fec4fc6268f'; | |
document.addEventListener('deviceready', function(){ | |
Pebble.registerReceivedDataHandler(uuid, function(err, info){ | |
if (err) return console.error(err); | |
navigator.notification.beep(1); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment