On 6/7/12 12:57 AM, Jonas Sicking wrote:
On Wed, Jun 6, 2012 at 10:52 PM, Anant Narayanan <[email protected]> wrote:
There is no way in the current API to distinguish between apps that have
been installed and apps that have been "acquired" (not quite the same as
installed) and do not have a native launch target.
Therefore the proposal is to modify getInstalled to return a list of apps
that have launch targets on the current platform, *only* when called in a
privileged context like a dashboard. getInstalled will continue to work as
currently defined for regular origins like stores.
Isn't that what the mgmt.getAllInstalled() API returns?
Do you mean getAll()? It returns all apps, even ones that have been
acquired but don't have a launch target. For instance, if I just synced
over an app from my desktop to mobile using apps in the cloud, it would
show up in the getAll() list.
Also, I believe that Fabrice is working on adding a property on the
App object which lets us tell the difference between an app which has
been "acquired" but not yet fully downloaded and given a launch
target. So getAllInstalled() could return all acquired apps and then
pages could filter out the ones that don't yet have a launch target.
Hmm, that's interesting because in
https://bugzilla.mozilla.org/show_bug.cgi?id=756306#c13 Fabrice argues
for *not* having such a property on the app object. But if we are going
to implement such a property, I think it will serve our purposes just
fine and we don't have to modify the function.
-Anant
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps