See here: https://developer.mozilla.org/en-US/Apps/Build/Manifest#activities
> On 13 Nov 2015, at 12:06 pm, leandro <[email protected]> wrote: > > 2015-11-13 17:53 GMT+01:00 Paul Theriault <[email protected] > <mailto:[email protected]>>: > 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. > > > hi, Paul > can you reformulate this last paragraph? > i don't unerdestant this ... :/ > how i declare an activity in my manifest.webapp? which activity? > thank you for your help > > To hook into the events when a call is received though, you need the > telephony permission. which is certified only. > > yes, i already have telephony permission in my manifest.webapp > > -Paul > > >> On 13 Nov 2015, at 10:28 am, leandro <[email protected] >> <mailto:[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] <mailto:[email protected]> >> https://lists.mozilla.org/listinfo/dev-fxos >> <https://lists.mozilla.org/listinfo/dev-fxos> > >
_______________________________________________ dev-fxos mailing list [email protected] https://lists.mozilla.org/listinfo/dev-fxos

