{"issue":{"state":"open","created_at":"2011-11-25T17:06:43Z","updated_at":"2011-11-25T18:01:04Z","user":{"gravatar_id":"14e4a4de9048f2abf09102194dd83582","id":43322,"url":"https://api.github.com/users/mattlanham","login":"mattlanham","avatar_url":"https://secure.gravatar.com/avatar/14e4a4de9048f2abf09102194dd83582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":4,"body":"I've tried a couple of different methods, and it's always returning undefined, i've also tried the Ajax approach and that also isn't returning the PIN, i've checked and double checked my config ensuring that the following config's are set, but still nothing, to get PUSH working we need access to this somehow...\r\n\r\nI've tried this on OS 6.0 and OS 7.0 with the latest version of WebWorks\r\n\r\nI've tried\r\n\r\n    $.ajax({\r\n        type: \"get\",\r\n        url: \"http://localhost:8472/blackberry/identity/get\",\r\n        success: function(msg){\r\n            alert(msg);\r\n        }\r\n    });\r\n\r\nAlso:\r\n\r\n    var pin= blackberry.identity.PIN;\r\n    alert(pin);\r\n\r\nCurrently my config contains every feature, and i've ensured the following is there:\r\n\r\n    <feature id=\"blackberry.identity\" required=\"true\" version=\"1.0.0.0\"/>\r\n    <rim:permissions>\r\n        <rim:permit>access_shared</rim:permit>\r\n        <rim:permit>record_audio</rim:permit>\r\n        <rim:permit>read_geolocation</rim:permit>\r\n        <rim:permit>use_camera</rim:permit>\r\n        <rim:permit>read_device_identifying_information</rim:permit>\r\n    </rim:permissions>\r\n\r\nAny assistance would be appreciated...\r\n","assignee":null,"id":2350900,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":273,"title":"blackberry.identity.PIN always returns undefined","closed_at":null,"html_url":"https://github.com/blackberry/WebWorks-API-Docs/issues/273","url":"https://api.github.com/repos/blackberry/WebWorks-API-Docs/issues/273","milestone":null},"action":"created","comment":{"created_at":"2011-11-25T18:01:04Z","updated_at":"2011-11-25T18:01:04Z","user":{"gravatar_id":"e5faa8b38f11e6bf570bf3a626dd4208","id":408517,"url":"https://api.github.com/users/tneil","login":"tneil","avatar_url":"https://secure.gravatar.com/avatar/e5faa8b38f11e6bf570bf3a626dd4208?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I just tried out the following code that I built and installed on:\r\n\r\nTorch 9800 OS 6.0\r\nTorch 9860 OS 7.0\r\n\r\nThis code ran fine and retrieved the PIN of the device\r\n\r\n**config.xml**\r\n\r\n    <widget xmlns:rim=\"http://www.blackberry.com/ns/widgets\" version=\"1.0.0\" rim:header=\"RIM-Widget:rim/widget\" xmlns=\"http://www.w3.org/ns/widgets\">\r\n      <rim:navigation mode=\"focus\" />\r\n      <name>PIN Test</name>\r\n      <content src=\"index.htm\" />\r\n      <feature id=\"blackberry.identity\" />\r\n    </widget>\r\n\r\n**index.htm**\r\n\r\n    <html>\r\n\t<head>\r\n\t\t<script type=\"text/javascript\">\r\n\t\t\r\n\t\t\tfunction getPIN() {\r\n\t\t\t\talert(blackberry.identity.PIN);\r\n\t\t\t}\r\n\t\t\r\n\t\t</script>\r\n\t</head>\r\n\t<body>\r\n\t\t<button onclick=\"getPIN()\">Click Me</button>\r\n\t</body>\r\n    </html>\r\n\r\nI'm wondering if there is something else causing an error.. ","id":2876777,"url":"https://api.github.com/repos/blackberry/WebWorks-API-Docs/issues/comments/2876777"}}