12-27-2013 09:12 AM
I am trying to get my device id by using blackberry.invoke.uuid for my z10 device i get null.
On the same hand i use this in emulator it gives me some PIN.
I am using webworks 1.0.
Not able to find a solution for this . Need Help .
Solved! Go to Solution.
01-02-2014 11:27 AM
There are two things you will need to correct:
1. The following API should be used to retrieve the UUID (you are using invoke, it should be identity):
var id = blackberry.identity.UUID;
2. If using the WebWorks 2.0 beta, make sure to add the API to your project using the following:
webworks plugin add com.blackberry.identity
01-07-2014 01:48 AM
Please verify that you have add the following permission element.
<feature id="blackberry.identity" />
<feature id="blackberry.identity.phone" />
01-07-2014 09:27 AM
Note: if you are using the BlackBerry 10 WebWorks 2.0 SDK Beta, when you add a plugin to your project, the SDK will automatically create the permissions element in the generated config.xml file.
If you are using BlackBerry 10 WebWorks 1.0, then as mvishnumkl suggests, you will have to add this manually in order to read protected information like device UUID.