09-30-2012 12:22 PM
I created and installed the helloworld webworks application, described in the Webworks documentation,
"Creating Helloworld for Blackberry 10". When run "Web Inspector" indicates "ReferenceError: Can't find variable blackberry" for the code line:
ele.innerHTML = "uuid: " + blackberry.identity.uuid
(Not sure if its relevant but my BB10 Alpha device was upgraded to the new OS at Blackberry Jam)
Solved! Go to Solution.
09-30-2012 12:28 PM
10-02-2012 08:41 AM
Yes I did include "webworks-188.8.131.52.js". I have it in the root of the project with index.html. Its in the zip file thats published to the output folder. I don't understand whats wrong.
10-02-2012 07:07 PM
Ditto what bkoms said. Also, can you confirm that you are waiting for the webworksready event before attempting to access the blackberry object?
10-04-2012 06:28 PM
Just to confirm, you copied the new webworks.js file from the 184.108.40.206 SDK's clientFiles folder in place of the old file?
10-05-2012 04:31 AM
Does it work that way?
Did it work before the update?
The documentation referring to identity for bb10 doesn't have any code like yours:
The BBM platform documentation refers to uuid but again in a different way. Could you share with us under which context you are using the uuid?
10-06-2012 01:38 PM
For BB10, uuid is a static property that can be read - according to this document you refer to. Its stated in the table expanded under the link "View Supported Platform Table".
10-06-2012 01:42 PM
Yes I did. But I'm wondering if the problem is in how the version number attribute in the feature element of the config.xml is processed. I wonder if it must match the version number in the top widget element.