Hi Jose,
On 04/11/2013 14:59, jose llopis wrote:
as some people knows i'm developing an IM app, and i need to group my
notifications by conversations how can i achieve this one on a compatible way
(1.0-1.3) ?
you mean that you need a way to link your notification to a specific
conversation? You can check what the SMS app does in the Gaia codebase,
we append some extra information about the thread & message the
notification belongs to into the image url:
https://github.com/mozilla-b2g/gaia/blob/master/apps/sms/js/activity_handler.js#L367
https://github.com/mozilla-b2g/gaia/blob/master/apps/sms/js/activity_handler.js#L425
The WAP Push app does something similar (albeit simpler) to map
notifications to messages:
https://github.com/mozilla-b2g/gaia/blob/master/apps/wappush/js/wappush.js#L138
https://github.com/mozilla-b2g/gaia/blob/master/apps/wappush/js/wappush.js#L147
Gabriele
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g