Closed Bug 774422 Opened 13 years ago Closed 13 years ago

Can't launch app from install notification

Categories

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

defect
Not set
normal

Tracking

(firefox16 verified, firefox17 verified)

VERIFIED FIXED
Firefox 17
Tracking Status
firefox16 --- verified
firefox17 --- verified

People

(Reporter: wesj, Assigned: wesj)

Details

Attachments

(1 file)

There's a race going on here between the NotificationHandler bringing our app to the front and Gecko starting the new webapp intent. Apparently us coming to the front is winning now. http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/NotificationHandler.java.in#50
Attached patch PatchSplinter Review
This changes the order that we dispatch these so the "bring App to the front" intent is sent before the webapp one. Some part of me worries that this is just moving the race without solving the problem, but the Gecko bit is the only cross thread piece here and firing it after we call startActivity(AppIntent) should ensure that that intent is always dispatched second... I think?
Assignee: nobody → wjohnston
Attachment #642693 - Flags: review?(mark.finkle)
Blocks: 769712
No longer blocks: 769712
Attachment #642693 - Flags: review?(mark.finkle) → review+
Whiteboard: [qa+]
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 17
Looks good. V-F on M-C (Nightly 07/17), GN 4.1.1 Does this need to be uplifted to Aurora?
Status: RESOLVED → VERIFIED
Whiteboard: [qa+]
(In reply to Aaron Train [:aaronmt] from comment #4) > Looks good. V-F on M-C (Nightly 07/17), GN 4.1.1 > > Does this need to be uplifted to Aurora? I think so. Wes, please nom.
Comment on attachment 642693 [details] [diff] [review] Patch [Approval Request Comment] Bug caused by (feature/regressing bug #): This code has been here a long time, but something got faster and started triggering this race. No idea what it was. User impact if declined: Notifications that launch intents might not work. Testing completed (on m-c, etc.): Landed on mc Jul 17. Risk to taking this patch (and alternatives if risky): Low risk. Just reordering existing code. String or UUID changes made by this patch: None.
Attachment #642693 - Flags: approval-mozilla-aurora?
Comment on attachment 642693 [details] [diff] [review] Patch [Triage Comment] Approving for Aurora 16. Is this low-risk/high-reward enough for uplift to Beta 15?
Attachment #642693 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
(In reply to Alex Keybl [:akeybl] from comment #7) > Comment on attachment 642693 [details] [diff] [review] > Patch > > [Triage Comment] > Approving for Aurora 16. Is this low-risk/high-reward enough for uplift to > Beta 15? Nah. WebApps is not going to be enabled on Fx15 (Beta)
Whiteboard: [qa+]
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: