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
New Contributor
afriprog
Posts: 5
Registered: ‎02-05-2011
My Device: Storm 2

blackberry.identity [undefined] is not an object

Hello everyone,

 

I have read alot but this is my first time of posting here. Pls i will appreciate if you can respond to it promptly.

 

i get this error blackberry.identity [undefined] is not an object and the line is

NIRPhone.phonenumber = blackberry.identity.phone.getLineNumber();

 NIRPhone.pin = blackberry.identity.PIN;

 

i have tihs already in my config file as

 <feature id="blackberry.identity.phone" required="true" version="1.0.0"/>
    <feature id="blackberry.identity" required="true" version="1.0.0"/>

 

I dont know what is wrong, this work fine in ripple.

Also the menu did not show on simulator but show on ripple.

 

Thank you.

Please use plain text.
Developer
Developer
LBP
Posts: 607
Registered: ‎04-29-2011
My Device: PlayBook 16GB, BB10 LE Z10 (red)
My Carrier: none

Re: blackberry.identity [undefined] is not an object

[ Edited ]

afriprog wrote:

Hello everyone,

 

I have read alot but this is my first time of posting here. Pls i will appreciate if you can respond to it promptly.

 

i get this error blackberry.identity [undefined] is not an object and the line is

NIRPhone.phonenumber = blackberry.identity.phone.getLineNumber();

 NIRPhone.pin = blackberry.identity.PIN;

 

i have tihs already in my config file as

 <feature id="blackberry.identity.phone" required="true" version="1.0.0"/>
    <feature id="blackberry.identity" required="true" version="1.0.0"/>

 

I dont know what is wrong, this work fine in ripple.

Also the menu did not show on simulator but show on ripple.

 

Thank you.


Is your post referring to the BB OS5+ or to PlayBook/BB10? As of PlayBook/BB10 did you set the permissions in your config.xml as explained in the docs here: https://developer.blackberry.com/html5/apis/blackberry.identity.html

 

Regards.


"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
Please use plain text.