Closed Bug 847427 Opened 11 years ago Closed 10 years ago

Starting web-apps via shortcut without a profile; downloads .webapp and launches empty app

Categories

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

ARM
Android
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: aaronmt, Unassigned)

References

Details

(Keywords: regression, reproducible)

i) Nightly (03/04)
ii) Pacman Canvas (Alpha)
iii) Wipes your profile
iv) Launch Pacman

I/ActivityManager(  526): START u0 {act=org.mozilla.gecko.WEBAPP1 dat=http://pacman.platzh1rsch.ch/pacman-canvas.webapp flg=0x10000000 cmp=org.mozilla.fennec/.WebApps$WebApp1 bnds=[216,185][376,385]} from pid 883

I/ActivityManager(  526): Start proc org.mozilla.fennec:org.mozilla.fennec.WebApp1 for activity org.mozilla.fennec/.WebApps$WebApp1: pid=5783 uid=10126 gids={50126, 3003, 1015, 1006, 1028}

D/GeckoProfile( 5783): Created new profile dir at /data/data/org.mozilla.fennec/files/mozilla/vb0vh83i.webapp1

I/ActivityManager(  526): START u0 {act=android.intent.action.VIEW dat=file:///storage/emulated/0/Download/pacman-canvas.webapp typ=application/x-web-app-manifest+json flg=0x4000000} from pid 5783
Probably not a high priority but is there a more common where this might be worth catching the issue here?
(In reply to Aaron Train [:aaronmt] from comment #1)
> Probably not a high priority but is there a more common where this might be
> worth catching the issue here?

How often do users wipe their profile? Rarely?

What's the workflow right now for users wiping profiles on FF Android?
(In reply to Jason Smith [:jsmith] from comment #2)
> How often do users wipe their profile? Rarely?

I would imagine so and even less so with our audience using web-apps.
 
> What's the workflow right now for users wiping profiles on FF Android?

From within Android, go into the targeted package App Info → Clear Data, Clear Cache
Hmm...let's not track, but P2 only for the severity. Probability seems low, though.
Priority: -- → P2
I think we should probably, if we ever load a url with a mimetype of application/x-web-app-manifest+json, just try to install? That creates a new install method where just opening a link that points to manifest would trigger an install, so I don't love it. We could do that for just this url-from-the-intent case though...
Bug 856984 is still an issue now that there is a shotcut added by default on app install. On the HTC Desire Z (Android 2.3.3) the shortcut is not removed when the app is uninstalled. When the user opens the app from the remaining shortcut the app is opened without content and the download of a manifest.webapp is started.
This should no longer be an issue with Synthetic APKs, which were designed to work even if there is no Fennec browser profile on app firstrun.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.