Closed
Bug 948447
Opened 11 years ago
Closed 11 years ago
Convert Facebook to new Notification API
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gerard-majax, Assigned: fcampo)
References
Details
Attachments
(1 file, 1 obsolete file)
apps/communications/facebook/js/fb_sync_init.js:
- sending notification on facebook sync errors
- no payload
Reporter | ||
Comment 1•11 years ago
|
||
I don't understand how this is supposed to get triggered. I've forced a call to showNotification() in syncSuccess(), imported some facebook contacts with success, but I still see no notification being triggered.
Flags: needinfo?(jmcanterafonseca)
Flags: needinfo?(crdlc)
Reporter | ||
Comment 2•11 years ago
|
||
The attached patch is a first change that enables the use of notification. This lacks of code to clear the notificaiton, though.
Comment 3•11 years ago
|
||
Alexandre,
Jose could help you thought. I worked on FB integration long time ago
Thx
Flags: needinfo?(crdlc)
Comment 4•11 years ago
|
||
:gerard-majax,
Please ask me for a review (jmcf@tid.es) ;)
thanks!
Updated•11 years ago
|
Flags: needinfo?(jmcanterafonseca)
Updated•11 years ago
|
Assignee: lissyx+mozillians → fernando.campo
Assignee | ||
Comment 5•11 years ago
|
||
So basically the previous patch from gerard-majax works good, I'm just putting it on github after testing it (thanks Jose for the tips).
There's no onClick behaviour, because there wasn't one specified before, but maybe we can think about something. Right now the notification gets flagged as read when clicked, but nothing else happens.
Another approach I'm thinking about is to change directly the NotificationHelper.js so other apps takes advantage of the new API, but the change would affect more applications, so it would be more risky. Better change the apps one by one and get rid of the helper? Change it on another bug? Thoughts about that?
Attachment #8434307 -
Flags: review?(jmcf)
Comment 6•11 years ago
|
||
Comment on attachment 8434307 [details]
Link to PR - https://github.com/mozilla-b2g/gaia/pull/20027
thanks Fernando
Attachment #8434307 -
Flags: review?(jmcf) → review+
Updated•11 years ago
|
Attachment #8366589 -
Attachment is obsolete: true
Comment 7•11 years ago
|
||
(In reply to Fernando Campo (:fcampo) from comment #5)
> Created attachment 8434307 [details]
> Link to PR - https://github.com/mozilla-b2g/gaia/pull/20027
>
> So basically the previous patch from gerard-majax works good, I'm just
> putting it on github after testing it (thanks Jose for the tips).
>
> There's no onClick behaviour, because there wasn't one specified before, but
> maybe we can think about something. Right now the notification gets flagged
> as read when clicked, but nothing else happens.
>
> Another approach I'm thinking about is to change directly the
> NotificationHelper.js so other apps takes advantage of the new API, but the
> change would affect more applications, so it would be more risky. Better
> change the apps one by one and get rid of the helper? Change it on another
> bug? Thoughts about that?
Etienne did the NotificationHelper but I don't know if we still need that library ...
Flags: needinfo?(etienne)
Assignee | ||
Comment 8•11 years ago
|
||
I was waiting for the ni to Etienne, but I thinks it's better to merge this (master - ab8cfa6ff52cbb86b7980bf96e6ee6bcb8a3fc70), and in case we need to change/delete the helper, we open a specific bug for it.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 9•11 years ago
|
||
(In reply to Fernando Campo (:fcampo) from comment #8)
> I was waiting for the ni to Etienne, but I thinks it's better to merge this
> (master - ab8cfa6ff52cbb86b7980bf96e6ee6bcb8a3fc70), and in case we need to
> change/delete the helper, we open a specific bug for it.
This discussion happened a while ago in the blocking bug: we concluded there was too much complexity and risks for few gains in keeping the NotificationHelper.
Comment 10•11 years ago
|
||
Relaying what was said IRL, Alexandre is the best person to know if the NotificationHelper is still needed to work around a gecko bug. Looks like it isn't :)
Flags: needinfo?(etienne)
Updated•11 years ago
|
Flags: needinfo?(lissyx+mozillians)
You need to log in
before you can comment on or make changes to this bug.
Description
•