CloudServices/Notifications/AndroidService

From MozillaWiki
Jump to navigation Jump to search

First

https://services.etherpad.mozilla.org/NotificationsAndroidService

Motivation

We want to be able to receive push notifications when Firefox is not running. That requires an Android `Service` component (for an open connection), and/or an Android `SyncAdapter` (to perform periodic pull syncs, just as we use for Firefox Sync on Android).

That component must be driven by calls from Fennec, allowing the Notifications DOM API to effect changes in behavior (e.g., subscribing to a new queue).

This page will capture design sketches for this component.

The unfairness of life

We currently allow Firefox to be installed on the SD card. Installation on the SD card is fundamentally incompatible with long-running/system integrated functionality (input managers, `SyncAdapter`s, `Service`s), as demonstrated in bug 768102.