Created
May 6, 2011 00:59
-
-
Save TooTallNate/958273 to your computer and use it in GitHub Desktop.
Example of displaying a notification on an iPhone with 'node-iOS'
This file contains hidden or 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
var iOS = require('iOS'); | |
iOS.createNotification({ | |
header: 'node-iOS Rocks!', | |
message: 'How much does running \'node\' on your iPhone rock?', | |
defaultButton: 'A lot!', | |
alternateButton: 'It rocks my socks' | |
}, function(err, res){ | |
if (err) throw err; | |
console.log(res); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://yfrog.com/gz885ip