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

Native Development

Reply
Developer
bbdevguy
Posts: 107
Registered: ‎11-19-2008
My Device: Not Specified
Accepted Solution

Call.phoneNumber() doesn't return phone number

I am trying to use the new method Call.phoneNumber() that was introduced in 10.3:

https://developer.blackberry.com/native/reference/cascades/bb__system__phone__call.html?f=Call#funct...

 

Even though I added the read_phonecall_details permission as per the documentation, I am still not receiving the phone number of outgoing calls placed on the device. Calling Call.phoneNumber() returns an empty string.

 

I am using the 10.3 simulator (10.3.0.698) with Momentics 2.1 and am placing the calls using the Controller.

 

Has anyone had success getting the phone number? Any ideas on how to make this work would be appreciated.

Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Call.phoneNumber() doesn't return phone number

This is a known issue in the simulator, but does work correctly on a real device.  The bug is logged in Issue Tracker here:  Call.phoneNumber() always returns empty string in the simulator

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
bbdevguy
Posts: 107
Registered: ‎11-19-2008
My Device: Not Specified

Re: Call.phoneNumber() doesn't return phone number

Thanks Mark for pointing this out.

Please use plain text.