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

BlackBerry® World™ Development

Reply
New Developer
dvarnai
Posts: 31
Registered: ‎02-01-2014
My Device: Q10 SQN100-3
My Carrier: Factory Unlocked

Re: Requesting read_phonecall_details permission

the fact that app for viber, app for skype, app for xyz are let in the app store WITHOUT review proves that the current system is flawed. and btw, vendor support redirected me and smiley here, and we have no idea now who to speak to, so thats another reason that this system sucks

Please use plain text.
Developer
BBSJdev
Posts: 6,090
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Requesting read_phonecall_details permission

If you want an Android experience you load Android apps and suffer the experience, but saying that we should do it this way because Android does totally destroys the USP.
For those individuals and more importantly in BlackBerry's case the Business users, that are not downloading the Android apps (at least not on the work side) I think it makes sense.

I've asked BlackBerry for an answer on what is the best route to getting restricted permissions, and will post when I get a reply.

If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
BBSJdev
Posts: 6,090
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Requesting read_phonecall_details permission

After all this I've been told that this permission doesn't require restricted approval you should just be able to add it to your bar file, have you tried this?

 

What is it that is not working for you?


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
New Developer
dvarnai
Posts: 31
Registered: ‎02-01-2014
My Device: Q10 SQN100-3
My Carrier: Factory Unlocked

Re: Requesting read_phonecall_details permission

The phone number string returned is empty but the documentation says it's restricted too :s
Please use plain text.
Administrator
MSohm
Posts: 14,450
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Requesting read_phonecall_details permission

You don't have to apply for read_phonecall_details, it is available to everyone.  The entry was missed in the GUI editor in the 2.1 gold release of Momentics so you'll need to manually add it to your bar-descriptor.xml file using the text editor.  Here's an example:

 

<permission>read_phonecall_details</permission>

 

 

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.
New Developer
dvarnai
Posts: 31
Registered: ‎02-01-2014
My Device: Q10 SQN100-3
My Carrier: Factory Unlocked

Re: Requesting read_phonecall_details permission

i always had this in my bar-descriptor.xml:

<!-- Request permission to post notification. -->
<permission>post_notification</permission>
<permission>access_phone</permission>
<permission>control_phone</permission>
<permission>read_phonecall_details</permission>

and heres the code I used:

void Service::smileysurprised:nCallUpdated(const bb::system::Phone::Call &call)
{
bb::system::Phone::CallState::Type state = call.callState();

if (bb::system::Phone::CallState::Incoming == state)
{
bool m_bEndCall = false;
qDebug() << "phone number: " << call.phoneNumber() << " type: " << call.callType();
}
}

but the phoneNumber string is empty. im testing on a simulator device. phoneNumber is empty for both incoming and outgoing calls. I have to add that this is inside the service part of a headless app, not sure if that matters.
Please use plain text.
New Developer
dvarnai
Posts: 31
Registered: ‎02-01-2014
My Device: Q10 SQN100-3
My Carrier: Factory Unlocked

Re: Requesting read_phonecall_details permission

http://i.imgur.com/htm9Qz2.jpg

 

Then upon phone call I get this in momentics:


phone number:  ""  type:  0

 

Documentation for phoneNumber says:

 

Returns the phone number of the remote end if the client has read_phonecall_details permission, returns an empty string otherwise.

 

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

Re: Requesting read_phonecall_details permission

I've tried this out and Call.phoneNumber() is always returning an empty string in the simulator.  It does work correctly on a real device using the current dev alpha OS (10.3.0.700),

 

I've logged this 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.
New Developer
dvarnai
Posts: 31
Registered: ‎02-01-2014
My Device: Q10 SQN100-3
My Carrier: Factory Unlocked

Re: Requesting read_phonecall_details permission

Thank you, so it wasn't my fault. Although I wonder how I'm going to test now because I don't want to install dev os on my only phone.
Please use plain text.