Closed Bug 741468 Opened 13 years ago Closed 13 years ago

The user should be prompted that an app failed to install if it did fail to install

Categories

(Firefox for Android Graveyard :: Web Apps (PWAs), defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: jsmith, Unassigned)

References

Details

Steps: 1. Install the latest fennec native nightly 2. Go to apps.mozillalabs.com/appdir 3. Install all of the apps on this app directory (19 in total) 4. Go to about:apps Expected: 19 apps should be listed in about:apps. Actual: Only 18 out of 19 apps were listed as installed. I'm thinking that it's possible that one app failed to install, but the user was not prompted that the app failed to install. Additional Notes: There are likely other ways to reproduce this issue, but the above reproduction steps will consistently show the silent failure occurring during installation of one of the 19 apps. Device: Samsung Galaxy Nexus OS: Android 4.02 Build: Fennec Native Nightly
Whiteboard: [WebRT]
Any specific error in the console (adb logcat)? Was there an installation prompt for all 19?
Component: General → Web Apps
Yes, there was an installation prompt for all 19. I'll have dig into later what the error is in the console.
QA Contact: general → web-apps
Whiteboard: [WebRT]
Blocks: 738546
Whiteboard: [marketplace-beta?]
FWIW, I don't see a way to be notified in chrome that the install failed. I only see navigator.mozMgmt.onInstall being fired for successful installs: http://mxr.mozilla.org/mozilla-central/source/dom/base/Webapps.js#351 Is there some other event I should be listening to? I only see onInstall and onUninstall, both of which are only fired for success.
(In reply to Mark Finkle (:mfinkle) from comment #3) > FWIW, I don't see a way to be notified in chrome that the install failed. I > only see navigator.mozMgmt.onInstall being fired for successful installs: > http://mxr.mozilla.org/mozilla-central/source/dom/base/Webapps.js#351 > > Is there some other event I should be listening to? I only see onInstall and > onUninstall, both of which are only fired for success. Sounds like this might be a problem with the API being exposed then possibly, as I thought the mozApps API does provide context into why an install failed (e.g. I couldn't find the manifest, the manifest did not parse correctly). Fabrice - Could you provide insight?
the install() call returns a DOMRequest obejct and we fire onerror on this object wen something bad happens. So the web content has ways to notify the user of errors. I don't think this should be replicated in chrome.
So we should close this bug?
Whiteboard: [marketplace-beta?]
As the stated in comment 3 and 5, the client-side API does not allow for reporting errors. It is currently the job of the webapp marketplace to show success and errors. I will close this bug.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
Agreed. Marketplace does the reporting as I've seen on marketplace.mozilla.org.
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.