Uninstalling a web app from the "My Apps" screen does not remove any shortcuts from the home screen

RESOLVED WONTFIX

Status

()

Firefox for Android
Web Apps
RESOLVED WONTFIX
6 years ago
5 years ago

People

(Reporter: mcomella, Unassigned)

Tracking

Trunk
ARM
Android
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

1) Open Firefox
2) Go to marketplace.mozilla.org and install an app (or use a pre-existing installation that you don't mind uninstalling)
2.5) Ensure the app placed a shortcut on the home screen. If not, go to the "My Apps" screen, long press the app, and place an app shortcut on the home screen.
3) Go to the "My Apps" screen, long press the app, and uninstall it.
4) Go to the home screen where the app shortcut is located.

Expected: The shortcut is gone.
Actual: The shortcut still exists.

In my case, clicking on the app shortcut on the home screen launched it and allowed it to run fully, despite being uninstalled. The app did not reappear on the "My Apps" screen.
Android does not have a reliable way to remove shortcuts. We have code in place that tries to remove the shortcut:
http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/GeckoAppShell.java#887

We fire it here:
http://mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/aboutApps.js#66

Resolving WONTFIX. Reopen if we find a new way to ask Android to remove the shortcut.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WONTFIX
(In reply to Mark Finkle (:mfinkle) from comment #1)
> Resolving WONTFIX. Reopen if we find a new way to ask Android to remove the
> shortcut.

If we are unable to reliably remove the shortcut, we should probably inform the user that uninstalling an app will not remove the home screen shortcut. Is there any intention to do this?
We have no way (I know of) for knowing if the remove intent succeeded or failed. i.e. we run the risk of saying to the user "Shortcut removed!" "This shortcut may not have been removed".

It's... a tough problem. I think mostly dealing with custom launchers written by vendors that don't all respond to intents the same way. We COULD try and figure out if there are separate intents that work on different devices and send out a custom intent (or multiple ones).

I would not make that project a high priority though.
You could try calling GeckoAppShell.getHandlersForIntent() and see if that gives us anything useful on devices where this doesn't work....

Comment 5

6 years ago
> In my case, clicking on the app shortcut on the home screen launched it and
> allowed it to run fully, despite being uninstalled. The app did not reappear
> on the "My Apps" screen.

I can reproduce this issue on:
Nightly 18.0a1 2012-10-02
Device: Asus Transformer TF101
OS: Android 4.0.3

In my opinion another problem is that the web-app is fully functional despite being uninstalled.
You need to log in before you can comment on or make changes to this bug.