Dial is used to make a call. If you handle “dial” it will show up as the list 
of options when the user clicks a tel: link, for example. So a VOIP service 
would be the sort of thing that handles this activity.

You need to declare the activity in your manifest in order to receive the 
message though.

To hook into the events when a call is received though, you need the telephony 
permission. which is certified only.

-Paul


> On 13 Nov 2015, at 10:28 am, leandro <[email protected]> wrote:
> 
> i'm just toying around with the idea of to hook when the user receives a 
> phone call
> 
> i've tried in a test app with the followin code but no luck
> 
> navigator.mozSetMessageHandler('activity', function(activityRequest) {
>   if(activityRequest.source.name <http://activityrequest.source.name/> = 
> 'dial') {
>     console.info <http://console.info/>("being called");
>   }
> });
> 
> is mandatory some permission to do this?
> note than i don't want to call nor answer, but only being noticed of and 
> react to the call
> 
> is there another way to accomplish this?
> -Leandro
> 
> 
> 
> 
> IMPORT MY GPG KEY:
> gpg --keyserver x-hkp://pgp.mit.edu <http://pgp.mit.edu/> --recv-keys BA863309
> 
> 
> _______________________________________________
> dev-fxos mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-fxos

_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to