Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 49
Registered: ‎05-02-2013
My Device: Z 10
My Carrier: airtel

Get z10 device PIN pragmatically

Please help me to retrieve Blackberry Z10 device uuid.

It is giving me NULL value. 

The code I used is blackberry.identity.uuid;

 

Please  also let me the dependencies for getting device PIN.

Please help me.

Thanks in advance.

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Get z10 device PIN pragmatically

Have you set the permission to allow the app to gain access to this (in the bar xml file)?
BlackBerry Development Advisor
Posts: 634
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Get z10 device PIN pragmatically

Hello,

 

The API docs (https://developer.blackberry.com/html5/apis/gold/blackberry.identity.html#.uuid) say there are a few things you  need to do to use this in your app.

 

In the config.xml file you need to have the following:

<feature id="blackberry.identity" />
<feature id="blackberry.identity.phone" />
<rim:permit>read_device_identifying_information</rim:permit>

 

 

BlackBerry Development Advisor
Posts: 634
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Get z10 device PIN pragmatically

Also,

 

Looks like somebody else has a similar thread going here that may be of use if you're still stuck: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Device-PIN-or-UUID-Comming-Null/...