On 6/7/12 8:56 AM, Ian Bicking wrote:
I think getInstalled is little bit of a red herring – it means "things
this site installed". More generally, underlying mozApps is a single
list of applications that either exist (and so are installed) or don't
exist in that list.
I've been thinking about this a little, and I think it might make sense
to distinguish between applications that *could* exist (i.e., everything
in the cloud), and applications are installed locally, or installed on
other particular devices.
One thought I had is that we could have mozApps.getAllRemote() (and
getInstalledRemote()) that gives all the app objects that exist, whether
or not they are installed. Applications objects would have a property
indicating their local install status, and an .install() method.
.uninstall() means uninstall locally. Maybe a new method could be added
that means remove from the cloud.
I don't think we should conflate the concept of remote apps with this
API. We can do something much simpler, there are only two "types" of
apps for any user:
1. Apps that the user has acquired, across all their devices
2. Apps that are installed on the current device (the definition of
"installed" can vary from device to device, but for Android/Desktop,
this is the native installation)
My proposal is to make getAll return (1) and getInstalled return (2) in
the case of privileged domains like the dashboard. Are there use cases
that this proposal does not fulfill?
-Anant
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps