(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?
Fixed as part of Bug 1346061.
Status: NEW → RESOLVED
Last Resolved: 5 months ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1346061
You need to log in before you can comment on or make changes to this bug.