Closed Bug 1309791 Opened 8 years ago Closed 7 years ago

Use push to detect Firefox Account verification in Fennec

Categories

(Android Background Services Graveyard :: Firefox Accounts, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1346061

People

(Reporter: rfkelly, Unassigned)

Details

(Spinning this off from https://bugzilla.mozilla.org/show_bug.cgi?id=1300620#c8) When a user signs in to Fennec with their Firefox Account, Fennec currently checks the verification status of the account by polling, making periodic requests to /v1/account/keys until one succeeds. It works, but it has all the usual traffic-versus-timeliness tradeoffs of polling. Firefox Accounts can instead send a WebPush notification when the account is verified, which would save us the trouble of polling. We should update Fennec to listen for it. Without knowing too many of the details, it sounds like this may be a little complex. Fennec already registers for WebPush messages from FxA, but per this comment, it only starts listening for them *after* the account has been verified: https://dxr.mozilla.org/mozilla-central/source/mobile/android/services/src/main/java/org/mozilla/gecko/fxa/FxAccountPushHandler.java#41 So a bit of refactoring of the device-registration code in Fennec will probably be required.
Grisha, is this still outstanding, and if so does it fit within in the scope of your android cleanup work?
Flags: needinfo?(gkruglov)
Fixed as part of Bug 1346061.
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(gkruglov)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.