On 13-08-12 9:15 AM, Mark Finkle wrote:
------------------------------------------------------------------------
Defining such an interface and managing the multiple client and server
versions is not awesome, but of course it can be done. And loading a
privileged page is equivalent: the interesting part is populating the
interface (or privileged page) from the Android Account object.
I still reserve judgement on the Android part. Using a GeckoView
(doesn't exist yet) or a WebView (leery of support across various
Android versions) has risks. There is also the "look and feel" issues.
We'll need to talk to UX about how this would "feel" in the Android
system. Remember, Android already has a native way of doing these
things, desktop Firefox doesn't really need to worry about that. Also,
making this look like the right "Android" UI could be challenging too.
I'd like to understand more about your concern about the Android native
way. I see three situations where Firefox Accounts will interact with
the user:
1. Creating an account;
2. Updating an account's password;
3. Viewing/changing account settings [1].
In no case do I intend to use GeckoView or a Web View. I intend to open
Fennec itself.
1. In the instances when the user wants to create a Firefox Account via
Settings > Accounts, I think that starting Firefox and displaying the
about:accounts flow for account creation is fine [2]. We have complete
control over what Intent is used for creation and where the Account
creation actually happens.
2. When a token expires or the password is changed, Android requires
user intervention to update the credentials [3]. I think we should
display a persistent notification saying "Can't log in to Firefox
Account server" or whatever (just like gmail, or twitter, or ...). The
notification can open Firefox and start the change password flow.
3. Finally, we have long intended to open Fennec > Preferences to modify
old Sync settings rather than fight tooth and nail with Android's
abysmal "sync settings" UI. It was low priority before Sync was
cancelled, but we'll do this for Firefox Accounts.
I intend to prototype these interactions in the coming days, but I'd
like to know if I'm missing something or there are particular cases I
should pay attention to.
Sorry for the delayed reply,
Nick
[1] I really mean the Firefox Account settings -- your device
constellation -- and not *necessarily* your Sync settings (or any other
Service-specific settings). But we should keep Sync settings inside
Fennec > Preferences too!
[2] I believe this is far less frequent than creating an Account in
response to the promo box or via Fennec > Preferences, but I don't have
data. If my hunch is correct, slow start-up is felt only infrequently.
[3] Due to the way old Sync on Android is designed and used, we have
never had to implement this flow.
_______________________________________________
Sync-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/sync-dev