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
Posts: 111
Registered: ‎11-19-2008
My Device: Not Specified
Accepted Solution

Can headless app initiate a phone call?

I am working on a telephony-based app and would like to initiate a call from the headless part of the app. I am using the following code

 

    QVariantMap map;
    map.insert("number", QString("+12345678999"));    // required
    InvokeRequest request;

    QByteArray requestData = bb::PpsObject::encode(map, NULL);
    request.setAction(QString("bb.action.DIAL"));
    request.setMimeType(QString("application/vnd.blackberry.phone.startcall"));

    request.setData(requestData);

    m_invokeManager->invoke(request);

 The code doesn't work when used from the headless part though it works from a regular, UI part of the app. I have all the available phone permissions selected.

 

Is it possible to initiate an call from a headless application?

BlackBerry Development Advisor
Posts: 15,124
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Can headless app initiate a phone call?

No, that is not supported.  You'll need to initiate it from your UI application.

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
Developer
Posts: 111
Registered: ‎11-19-2008
My Device: Not Specified

Re: Can headless app initiate a phone call?

Thanks for your response Mark.