Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Update applications #32

Open
jm42 opened this issue Sep 12, 2020 · 9 comments
Open

Update applications #32

jm42 opened this issue Sep 12, 2020 · 9 comments

Comments

@jm42
Copy link

jm42 commented Sep 12, 2020

Now is not possible to install an application that is already installed, even if the last version is newer that the installed version. For a future where the store can update applications, the first step would be showing the last application version from data.json.

Then to show the installed version. The App object has the complete manifest with the version.

It also has a checkForUpdate() method.

@jm42
Copy link
Author

jm42 commented Sep 22, 2020

Seems like checkForUpdate() might be an Firefox OS only feature.

Firefox OS on the phone polls once per day for changes to an app. To do this, it polls the URL of the mini-manifest, then polls the URL in the package_path field in the mini-manifest. This is done using the checkForUpdate() method on the App object. When the ETag header changes, it knows the app has been updated. Then it checks if the zip file has changed.

@strukturart
Copy link
Owner

Unfortunately I don't know how to update an app without losing the user data. uninstall-> download new version -> install

@sunsetsonwheels
Copy link

I think for this to happen, the backend needs to be revamped completely, moving away from the OmniSD format to having mini manifests and application zips: https://developer.mozilla.org/en-US/docs/Archive/Marketplace/API/DOMApplicationsRegistry/install

@strukturart
Copy link
Owner

can we use it to install a certified app?

@strukturart strukturart reopened this Nov 18, 2020
@sunsetsonwheels
Copy link

can we use it to install a certified app?

I think it should be able to, you could try. I guess this is the same mechanism that the KaiStore uses to install apps behind the scenes.

@farooqkz
Copy link
Collaborator

I think for this to happen, the backend needs to be revamped completely, moving away from the OmniSD format to having mini manifests and application zips: https://developer.mozilla.org/en-US/docs/Archive/Marketplace/API/DOMApplicationsRegistry/install

I don't think we need to completely move away from the OmniSD format. OmniSD zip already have application.zip and manifest as long as I remember.

@strukturart
Copy link
Owner

you could try if import () works without OmniSD then you could use both.

@jm42
Copy link
Author

jm42 commented Jan 3, 2021

At lest the store should show last version (and, if installed, the current version.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants