Closed Bug 1277836 Opened 4 years ago Closed 4 years ago

Incoming calls are not received if the Dialer is not open

Categories

(Firefox OS Graveyard :: Gaia::Dialer, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: apastor, Assigned: apastor)

References

Details

Attachments

(1 file)

We need a mechanism to wake up apps when there is a system message that requires it.
Alberto, the system app receives the broadcasted system message in both situations right but the dialer also uses a DOM event when it's open?

I guess we have a couple of options to register messages:
1) Gecko goes through all the manifests, and sends a registration event to the system app (https://hg.mozilla.org/projects/pine/file/tip/b2g/components/SystemMessageInternal.js#l50) which will then use that to open the apps.
2) We hardcode in the system app the list of messages for each gaia chrome app.
As we are moving away from manifests (we'll use the w3c webmanifest spec) I guess it makes sense just to hardcode the list of messages in the system. What do you think?
Flags: needinfo?(fabrice)
Assignee: nobody → apastor
(In reply to Alberto Pastor [:albertopq] from comment #2)
> As we are moving away from manifests (we'll use the w3c webmanifest spec) I
> guess it makes sense just to hardcode the list of messages in the system.
> What do you think?

That works for me!
Flags: needinfo?(fabrice)
Comment on attachment 8760660 [details] [review]
[gaia] albertopq:1277836-incoming-calls > mozilla-b2g:kanikani

Gabriele, would you mind to take a look?

Thanks!
Attachment #8760660 - Flags: review?(gsvelto)
Comment on attachment 8760660 [details] [review]
[gaia] albertopq:1277836-incoming-calls > mozilla-b2g:kanikani

Looking good and works fine on my Flame too!
Attachment #8760660 - Flags: review?(gsvelto) → review+
kanikani: https://github.com/mozilla-b2g/gaia/commit/0ba8fb1d2318d678ae86d17463aa162b22b3e1cc
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.