Closed Bug 1274928 Opened 8 years ago Closed 8 years ago

Add a mechanism to preinstall external webapps

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: apastor, Assigned: apastor)

References

Details

Attachments

(1 file)

      No description provided.
Depends on: 1270736
Assignee: nobody → apastor
Depends on: 1275072
Depends on: 1275076
Comment on attachment 8756370 [details] [review]
[gaia] albertopq:1274928-clock-external > mozilla-b2g:kanikani

Ben, what do you think about this approach? There is a missing step for updating the pinned manifest if the url has a link rel="manifest", in order to always keep the last one.

Note that the clock app is just an example. We should point to mozilla-b2g.github.io instead. 

* I used https://github.com/mozilla-b2g/preload-app-toolkit for generating the hosted_apps/clock folder
Attachment #8756370 - Flags: feedback?(bfrancis)
I think this is basically the right approach and I realise you're trying to not to touch too much code, but I do think this can be simplified.

How about a JSON file with an array of web app manifests (e.g. https://github.com/benfrancis/gecko-dev/blob/b2g-tablet/b2g/chrome/content/shared/defaults/sites.json) and we just populate the Places database from that on first run? (e.g. https://github.com/benfrancis/gecko-dev/blob/b2g-tablet/b2g/chrome/content/shared/js/Places.js#L77)
Attachment #8756370 - Flags: feedback?(bfrancis) → feedback+
Depends on: 1276153
Depends on: 1276155
Summary: Load the clock webapp as an external app → Add a mechanism to preinstall external webapps
Attachment #8756370 - Flags: review?(bfrancis)
Comment on attachment 8756370 [details] [review]
[gaia] albertopq:1274928-clock-external > mozilla-b2g:kanikani

So we're now using Facebook as an example web app? Fair enough.

I think this can be improved but at least this gets a basic mechanism working to pre-install web apps.
Attachment #8756370 - Flags: review?(bfrancis) → review+
kanikani: https://github.com/mozilla-b2g/gaia/commit/99978a001603702ff18d93ffdc0bb8202572f3b9
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: