Last post Jan 17, 2010 09:20 PM by travisrisner
Jan 16, 2010 03:33 PM|travisrisner|LINK
I'm looking to deploy a website that will be loaded by users on their BlackBerry. The goal is for when the user clicks a button, it hits a stored procedure on my sql server. I have written the stored procedure. One thing I'm looking to do is grab the
BlackBerry PIN number from the BlackBerry, and use it as a variable in the stored procedure. Is this possible? If so, how would I go about getting the PIN?
Jan 16, 2010 05:12 PM|hans_v|LINK
Jan 17, 2010 09:20 PM|travisrisner|LINK
Well, in case anyone stumbles across this post needing to know how to do this in the future, ignore that link. After playing around extensively, I discovered it is possible. On my BES, I added a setting to allow the pin to be passed into the http header.
After that, all it took was adding something like this:
string bb_pin = Request.Headers["Rim-device-id"];
I could then use bb_pin for virtually anything I wanted.