On Mon, Mar 5, 2012 at 9:10 PM, Jim Straus <
jst...@mozilla.com> wrote:
> Hello all -
> Just thinking about web apps and replacing built-in/default apps.
> Thinking about replacing the contacts app (for example). This means that
> the user can somehow remove the default contacts app from the home screen
> (how? dwell on it with a touch and a pop-up appears with the option to
> remove it?)
Presumably the market app will allow you to un-install apps. You could also
install other "app store" apps which also have permission to
install/uninstall apps of course.
> when they install a new contacts app. Then the user goes and removes the
> new contacts app. How do they get the original back?
Just re-install it from the marketplace app, I assume all Gaia apps will be
in the Mozilla Marketplace. I'm hoping we can turn all Gaia apps into real
Open Web Apps very soon.
> One thought is that the webapp manifest contains a list of capabilities
> the app provides. Then when an app is removed, if it is the last providing
> the capability, the default one is re-added automatically.
>
I don't think there's really any need to do this unless the only app left
on the device that can install apps can un-install itself and if this is
the case it should warn the user that they should make sure they have
another app store type app installed before they un-install it. Given that
Open Web Apps can be self-published and not listed in any store, maybe you
should also be able to install apps from the browser app. Then you're only
really stuck if you un-install both the marketplace app and the browser
app. Maybe we need a hard coded "factory reset" function for if the user
does something really silly like this.
> On a similar theme, how is the home screen replaced?
Install one from the market, then maybe a setting to set which app is the
homescreen? Are there certification issues with being able to change the
homescreen?
> And if it is, now does the original come back if desired?
>
Re-install it and change the setting?
> Finally, I'm thinking the settings app should be a specialized launcher,
> like the home screen and that each of the settings be its own webapp. This
> has several advantages such as allowing for new settings to be added or
> replaced without having to re-implement everything. It also allows each
> setting app to have its own set of permissions (see permissions discussions
> recently). Otherwise the settings app will basically have to have
> permission for everything.
>
Hmm, that might cause problems when enumerating apps because you'd have
lots of settings icons displayed in the launcher. Note that the settings
app only needs access to the Settings API, not all of the other APIs.
Ben
--
Ben Francis
http://tola.me.uk