Reviews/B2G/AppUpdates: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 4: Line 4:


<b>Open Questions</b><br>
<b>Open Questions</b><br>
* What does the UI look like for app updates? Is it the same as for system updates (ie via the notification tray?) I see https://mxr.mozilla.org/mozilla-central/source/b2g/components/UpdatePrompt.js but is this used for app updates or just system updates?
* Where do packaged app updates come from (ie where are they hosted, marketplace?) Is this still an open question?
* Where do packaged app updates come from (ie where are they hosted, marketplace?) Is this still an open question?
* How does the update process work with signing (probably need to combine signing review with this review)?
* How does the update process work with signing (probably need to combine signing review with this review)?
* Just to confirm: the user is prompted when an update is available, and it is up to the user to choose to download it ? (can they dismiss this?)


==Architecture==
==Architecture==
Line 76: Line 76:
For further on these steps see [http://mxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.jsm#1718 Webapps.jsm#1718].
For further on these steps see [http://mxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.jsm#1718 Webapps.jsm#1718].
===Applying App Updates===
===Applying App Updates===
For app updates, the update is applied as soon as it is downloaded, unless the app is running in front. If it is the case, we wait that it is hidden (most probably the user will press "home") to apply the update.
For app updates, the update is applied as soon as it is downloaded, unless the app is running in foreground. If that is the case, we wait that it is hidden (most probably the user will press "home") to apply the update.


Note that this differs from the system updates, we have an additional prompt when it is downloaded, to let the user choose to apply it now (the phone will reboot) or later (when the phone is rebooted next time).
Note that this differs from the system updates, we have an additional prompt when it is downloaded, to let the user choose to apply it now (the phone will reboot) or later (when the phone is rebooted next time). Also note that Gaia apps, are only updated during the system update.




canmove, Confirmed users
1,220

edits

Navigation menu