Closed Bug 1440661 Opened 6 years ago Closed 4 years ago

Adding PWA to Home screen is not performed

Categories

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

ARM
Android
defect

Tracking

(Webcompat Priority:?, fennec?, firefox58 affected, firefox59 affected, firefox60 affected, firefox61 affected, firefox62 affected, firefox63 affected, firefox64 affected)

RESOLVED INVALID
Webcompat Priority ?
Tracking Status
fennec ? ---
firefox58 --- affected
firefox59 --- affected
firefox60 --- affected
firefox61 --- affected
firefox62 --- affected
firefox63 --- affected
firefox64 --- affected

People

(Reporter: oanaarbuzov, Unassigned)

References

()

Details

(Whiteboard: [webcompat])

Attachments

(1 file)

Devices:
- Google Pixel (Android 8.0.0)
- Samsung Galaxy S7 Edge (Android 7.0)

Steps to Reproduce:
1. Navigate https://m.ugc.fr/films
2. Tap the "Add to Home Screen" (PWA) button.
3. Tap "Add to Home Screen" button.
4. Observe behavior.
       
**Expected Behavior:**
PWA is created on Home Screen.

**Actual Behavior:**
PWA is not created on Home Screen.

Note:
Not reproducible on Chrome (Mobile) 64.0.3282.137. 
An issue on Webcompat.com is available https://github.com/webcompat/web-bugs/issues/15615.
The link for the manifest is https://m.ugc.fr/img/favicon/manifest.json

```http
HTTP/1.1 200 OK
Accept-Ranges: bytes
Access-Control-Allow-Credentials: true
Age: 0
Connection: keep-alive
Content-Encoding: gzip
Content-Type: application/json
Date: Mon, 26 Feb 2018 05:30:12 GMT
Last-Modified: Fri, 16 Feb 2018 15:17:36 GMT
Server: UGC
Transfer-Encoding: chunked
Vary: Accept-Encoding

{
    "background_color": "#ffffff", 
    "display": "standalone", 
    "icons": [
        {
            "sizes": "192x192", 
            "src": "/android-chrome-192x192.png", 
            "type": "image/png"
        }
    ], 
    "name": "App", 
    "theme_color": "#ffffff"
}

```

The "start_url" parameter is missing.

The fact that the Add to Home Screen fails silently is not necessary a good way to fail.
Flags: needinfo?(abovens)
Flags: webcompat?
Whiteboard: [webcompat]
Flags: needinfo?(abovens)
Priority: -- → P1
Also the issue it's reproducible on https://partyquizzes.com on Beta 62.0b11 and Nightly (63.0a1 2018-07-25)
Devices: Motorola Nexus 6 (Android 7.1.1), Samsung Galaxy S8 (Android 8.0) and HTC Desire 820 (Android 6.0.1).
Note that the manifest at the time of this occurring on https://partyquizzes.com is as follows:

    {
      "short_name": "Party Quizzes",
      "name": "Party Quizzes",
      "icons": [
        {
          "src": "icon.svg",
          "sizes": "512x512 264x264 192x192 64x64 32x32 24x24 16x16",
          "type": "image/svg"
        }
      ],
      "start_url": "./",
      "display": "standalone",
      "theme_color": "#2a70db",
      "background_color": "#ffffff"
    }

Note that the `start_url` here is not missing, and I don't really see what else might be problematic here. (Even though it's `./` above, it's also failing when it was just `/`.)

Tested on Firefox for Android 61.0, and Firefox for Android Nightly (63.0a1 2018-07-25). Device: Fairphone 2 (Android 6.0.1 without Google Mobile Services).
.
Re-triaging per https://bugzilla.mozilla.org/show_bug.cgi?id=1473195

Needinfo :susheel if you think this bug should be re-triaged.
Priority: P1 → P5
I can confirm this issue in the latest version of NIghtly 64.0a1 (2018-10-11) on OnePlus 5T (Android 8.1.0)

Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.

Webcompat Priority: --- → ?

See bug 1547409. Migrating whiteboard priority tags to program flags.

I'm also seeing this on a Huawei Mate 30 Pro.
Tapping the 'Add to home screen' icon opens a dialog with a description of the web site/app, and a blue '+ ADD TO HOME SCREEN' button, but tapping the button does nothing...no icon appears on the phone's home screen.

If I tap the menu icon (top right, annoyingly), then 'Page', then 'Add Page Shortcut', then I get an icon on my home screen.

I've just looked into this a bit more with 79.0.5 (build #2015758619), which is the 'new' Firefox.

The '+' icon has gone from the URL bar, but there is now an 'Install' option on the menu. Tapping that causes an icon to appear on the homescreen, with an appropriate icon, but launching it from homescreen results in a blank screen.

When I look at it in the ff dev tools, I see that it isn't open on any URL, just 'about:blank'...nothing else.

If I enter a URL in the dev tools, my PWA loads and runs as expected (getting things from service worker caches/etc). Application/manifest looks correct (including start_url).

Bug in Comment 11 is likely a variation of Bug 1641715. The rest of this bug is not relevant anymore since we completely re-wrote the frontend.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID

Indeed, airhorner now seems to install and run just fine (on Huawei Mate 30 Pro).

Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: