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
Contributor
mserina
Posts: 44
Registered: ‎11-12-2012
My Device: BB 10 Dev Apha
My Carrier: -
Accepted Solution

invocation framework and phone calls

Hi All,

is there a way to start a phone call on BB10 from a uri like this: "tel:55555555"?

I've tried the following:

 

    blackberry.invoke.invoke({
        uri: "tel:5555555555"
    }, onSuccess, onError);
 
but i got a "INVOKE_NO_TARGET_ERROR"..
do you know which "target" I am expected to provide?
 
Thanks a lot
 
-marco
Please use plain text.
BlackBerry Development Advisor (Retired)
erikjohnzon
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: invocation framework and phone calls

Have you tried the action bb.action.DIAL?

 

  1. action: "bb.action.DIAL"
  2. uri: "tel:416-123-4567"
@erikjohnzon
erjohnson@blackberry.com
Please use plain text.
Contributor
mserina
Posts: 44
Registered: ‎11-12-2012
My Device: BB 10 Dev Apha
My Carrier: -

Re: invocation framework and phone calls

Hi, 

I tried it right now, but got still the same error..please help!

The same behaviour happens both in the emulator and on the real device..I was wondering if I can bypass this by using something equivalent to the former blackberry.invoke.APP_PHONE object..

thanks

Please use plain text.
BlackBerry Development Advisor (Retired)
erikjohnzon
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: invocation framework and phone calls

You don't have a Phone application on your device do you? If you are running a Dev Alpha you do not. Both your invoke, as well as the one I provided you work as desired.

 

You have 2 choices:

 

1. Wait for a OS update with a Phone app,

1. Create a simple app that registers with the invocation framework as a phone application. So that it can listen to the specific URI.

@erikjohnzon
erjohnson@blackberry.com
Please use plain text.
Contributor
mserina
Posts: 44
Registered: ‎11-12-2012
My Device: BB 10 Dev Apha
My Carrier: -

Re: invocation framework and phone calls

Hi Erik,

thanks a lot for your info..I'm gonno ask you just one last question: the same apply if I want to manage "mailto:"?

Thanks again

cheers

-.marco

Please use plain text.
BlackBerry Development Advisor (Retired)
erikjohnzon
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: invocation framework and phone calls

Hi Marco,

 

Yes, unless you have an email client, which I suspect you do not.

 

 

@erikjohnzon
erjohnson@blackberry.com
Please use plain text.
Contributor
khafra
Posts: 16
Registered: ‎05-17-2011
My Device: 9700
My Carrier: Bmobile

Re: invocation framework and phone calls

The APIs for messages and phone calls are not yet available in the latest .1675 dev alpha update, hence there is no way to interact with those services from any app.

Please use plain text.