blackberry and php verification
Is there a way to verify a开发者_如何学Python users blackberry pin using php ? or any other methods you may suggest :)
EDIT
- Users visits website: example.com.
- user signs up enters a blackberry pin.
- php/javascript/blackberry web Works generates a 4 digit code and sends it to blackberry pin (messenger).
- reads the 4 digit code returns to example.com and enters the 4 digit code into the website 5. click continue
- tell user that they have successfully verified the pin
php is server side code that would not execute on a blackberry. php could verify a pin assuming that there was some client side (on the blackberry device) code executing that would pass this information to php.
I found this forum thread discussing how to do this in java: http://supportforums.blackberry.com/t5/Java-Development/Get-the-pin-number-of-a-Blackberry-Device/td-p/223412
I don't know of any way to send a BBM message from a webserver. Once RIM re-releases the BBM API you could possably dedicate a Blackberry to pull account verification codes and PINs from your server and use an application on the device to send out the BBM message. That seems a little in-elegant. There may be a JavaScript method that can get the PIN for you, but I'm not very familiar with JavaScript.
Another way would be to implement the Blackberry Push API into your application, but this may be more overhead than is reasonable for your application.
The way I would do it is write a small Blackberry app that can be installed over the air from your website. The app could gather the user information, get the PIN from the API and send all the data up to your website. Once registration is complete, the application could be a web shortcut to your site, if that's what you want, or the user could delete it.
精彩评论