08-01-2012 05:24 AM
I'm currently developing a twitter client as a way of learning Cascades development. To help get a feel for how the user would interact with cascades, and because I much prefer developing for a physical device, I've installed Blackberry 10.0.06 on my Playbook by, shall we say, warranty-voiding means.
However, this means the playbook handles web links differently to the simulator due to it keeping the older Playbook browser. The playbook won't recognise the navigator_invoke() for PIN-based authentication with Twitter (whereas the Simulator does), while the simulator won't allow direct OAuth authentication via a WebView. This means that while both can authenticate with Twitter, the two different devices need to do it in separate ways.
Is there a way of finding the model name or identifier for the device the app is running on? If I can use this information in an if statement then it'll make authentication a lot easier.
08-01-2012 10:16 AM