04-19-2011 12:55 PM - edited 04-19-2011 05:11 PM
Hello,
Is it possible to access unique information about the PlayBook, such as its PIN, through the WebWorks SDK?
Thanks.
Solved! Go to Solution.
04-20-2011 04:51 PM
04-29-2011 12:35 PM
The retrieval of the PIN is tentatively planned for the next release of the WebWorks SDK for Tablet OS. It will be added to the blackberry.identity object like it is on the BlackBerry Smartphone.
If you feel up to the task you can expose it today by trying to create an extension into ActionScript, but it isn't for the faint of heart and we don't have documentation posted on how to make it happen.
You would have to take a look at the source code that is part of the SDK in your install folder and mimic one of the other APIs
04-29-2011 12:53 PM
08-03-2011 01:45 PM
08-03-2011 01:51 PM
This functionality was released with the WebWorks SDK for Tablet OS v2.1
API details here:
http://www.blackberry.com/developers/docs/webworks
08-30-2011 12:42 PM
Tim, that doesn't seem to actually work. blackberry.identity.PIN always returns null in WebWorks apps on the PlayBook devices I've tested (yes, the permission is set in config.xml). The AJAX call also returns {"data":{"PIN":null},"code":0,"msg":null}.
08-30-2011 12:44 PM
Is this on the simulator or the actual PlayBook device?
08-30-2011 12:53 PM
08-30-2011 12:55 PM
And you have included both of the following in your config.xml..
<rim:permit>read_device_identifying_information</rim:permit> <feature id="blackberry.identity" />
Is your JavaScript running locally or is it in a page you are bringing in from a remote URL?