Closed Bug 813743 Opened 12 years ago Closed 11 years ago

Set the correct URI for launching packaged webapps

Categories

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

x86
All
defect

Tracking

(firefox23 verified, fennec+)

VERIFIED FIXED
Tracking Status
firefox23 --- verified
fennec + ---

People

(Reporter: wesj, Assigned: jhugman)

References

Details

(Whiteboard: A4A)

Packaged webapps launch using a special app://<uri> uri that is basically converted to a jar: uri, and just opens the file inside its zip [1]. We need to use that when creating shortcuts for apps on Android.

This is where things get a bit hairy. Right now, the first thing we do after the user approves installing an app is call into Java and ask it to create a profile for the new app:

http://mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/browser.js#6813

We send that profile back to the webapps implementation in order for it to download any app cache information that it needs for first run. In this case, we DON'T want to create the shortcut yet, because we don't know the app's GUID yet, and hence don't know what launch url to use.

For webapps, I think we likely need to notify Gecko first, let it download the app into the webapps cache, and then try to get a GUID from that which we can pass to the shortcut.

cc'ing fabrice so he can give any more information about whether we can ignore app cache in this case, and what callbacks we need to make instead to get the apps GUID.
Whiteboard: A4A
Whiteboard: A4A → A4A, blocking-webrtandroid1?
Whiteboard: A4A, blocking-webrtandroid1? → [blocking-webrtandroid1?]
tracking-fennec: --- → +
Priority: -- → P1
Whiteboard: [blocking-webrtandroid1?] → A4A
Assignee: nobody → jhugman
No longer blocks: 830876
James - Does bug 813736 fix this bug?
Flags: needinfo?(jhugman)
Jason - yes. The fix for bug 813736 involves fixing this.
Flags: needinfo?(jhugman)
Okay, closing then.
Status: NEW → RESOLVED
Closed: 11 years ago
Depends on: 813736
Resolution: --- → FIXED
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.