ok i understand now :) -Leandro
IMPORT MY GPG KEY: gpg --keyserver x-hkp://pgp.mit.edu --recv-keys BA863309 2015-11-13 18:46 GMT+01:00 Julien Wajsberg <[email protected]>: > Hey leandro, > > the part you didn't understand from Paul is: you can't use the "dial" > activity to know that a dial is happening. For this you need the > "telephony" permission that is available to certified apps only. > Then you can handle a system message "telephony-new-call" (I don't know if > this still works as we don't use it anymore.) > > > Le 13/11/2015 18:35, leandro a écrit : > > i've put > > "activities": { > "dial": { > "href": "./index.html", > "disposition": "window", > "returnValue": true > } > } > > in my manifest but still no luck > which version of firefoxOS is supported this? > > -Leandro > > > > > IMPORT MY GPG KEY: > gpg --keyserver x-hkp://pgp.mit.edu --recv-keys BA863309 > > > > 2015-11-13 18:12 GMT+01:00 Paul Theriault <[email protected]>: > >> See here: >> >> https://developer.mozilla.org/en-US/Apps/Build/Manifest#activities >> >> >> On 13 Nov 2015, at 12:06 pm, leandro < <[email protected]> >> [email protected]> wrote: >> >> 2015-11-13 17:53 GMT+01:00 Paul Theriault < <[email protected]> >> [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]> >>> [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("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 --recv-keys BA863309 >>> >>> >>> _______________________________________________ >>> dev-fxos mailing list >>> [email protected] >>> https://lists.mozilla.org/listinfo/dev-fxos >>> >>> >>> >> >> > > > _______________________________________________ > dev-fxos mailing > [email protected]https://lists.mozilla.org/listinfo/dev-fxos > > > > _______________________________________________ > 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

