Closed
Bug 855814
Opened 13 years ago
Closed 13 years ago
Calendar: Notification: Tapping doesn't always launch app and show event.
Categories
(Firefox OS Graveyard :: Gaia::Calendar, defect)
Tracking
(blocking-b2g:tef+, b2g18 verified, b2g18-v1.0.1 verified)
RESOLVED
FIXED
| blocking-b2g | tef+ |
People
(Reporter: mlee, Assigned: evanxd)
References
Details
Attachments
(3 files)
Steps
1. Create a calendar event with a reminder.
2. Wait for the event's reminder notification.
3. Tap on the event's notification.
Result
+ Sometimes calendar app isn't loaded.
+ Sometimes app is loaded but in blank Month View.
Expected
+ Calendar app loads showing the notified event.
Comment 1•13 years ago
|
||
This works for me btw on 4/2/2013 build. Can retest on the latest build?
Flags: needinfo?(mlee)
| Reporter | ||
Comment 2•13 years ago
|
||
Still occurs. Retested on:
Device: Unagi
OS: 1.1.0.0-prerelease
Build: 20130329070203
STEPS:
1. Create/accept 2 calendar events, each with a reminder.
2. Wait for both event notifications.
3. Pull down notifications area.
4. If they're duplicate calendar notifications, swipe away the duplicates.
5. Tap on 1 of the events that was duplicated.
ACTUAL:
Notifications view dismissed, home view is shown, nothing else visually happens.
EXPECTED:
Notifications view dismissed, home view is shown, calendar opened and tapped event shown.
Not sure if having duplicate notifications and swiping them away needs to be done to see the problem but that's what I saw and did. I noticed later when pressing and holding the Home button that calendar was running but the preview of the app showed month view not the tapped event's details. Later more reminders occurred with duplicates, I accidentally tapped the bottom most event which was duplicated and saw the same behavior described in the steps above.
Flags: needinfo?(mlee)
OS: Mac OS X → Gonk (Firefox OS)
Hardware: x86 → ARM
Updated•13 years ago
|
Whiteboard: [gaia-want]
| Reporter | ||
Updated•13 years ago
|
blocking-b2g: --- → leo?
Comment 3•13 years ago
|
||
Talked this over with Michael in person and saw a demo of this - this is definitely happening with his calendar. We are getting duplicate notifications and clicking one of them doesn't work at all.
Whiteboard: [gaia-want]
Comment 4•13 years ago
|
||
Micheal, can you delete your account & resync? Curious to see if its related to state or your events.
| Reporter | ||
Comment 6•13 years ago
|
||
James,
I was able to remove my account but haven't been able to re-add it. The app stays on its Account page with the "Please wait while your account is setup" message and spinner. It's been in this state for more than 10 minutes and I'm still waiting for it to complete. I had this problem earlier today as well but aborted it.
I'll file separate bugs for the problems I ran into try to re-add my calendar account.
Flags: needinfo?(mlee)
| Reporter | ||
Comment 7•13 years ago
|
||
(In reply to Michael Lee [:mlee] from comment #6)
2.5 hrs later the Calendar app still shows the "Please wait..." message. I haven't dismissed the app since trying to re-add my account at 1:16pm PDT today. This on it's own is a really bad bug...
| Reporter | ||
Comment 8•13 years ago
|
||
Okay, I was finally able to re-add my calendar account, will report back about this bugs main app launch from event notification problem once a few event notifications occur.
FYI, the hanging "Please wait..." message seen when adding an account happens when adding a CalDav account without entering a protocol in the URL field, i.e. just entering a domain; see bug 858866 for details.
Comment 10•13 years ago
|
||
(In reply to Joe Cheng [:jcheng] from comment #9)
> ni? from reporter to confirm the bug
FWIW, Michael confirmed this bug in front of me post triage on Thursday. Additionally, Casey confirmed this same bug as well.
Maybe this is a bug on a per calendar basis?
Flags: needinfo?(mlee)
| Reporter | ||
Comment 11•13 years ago
|
||
Bug still occurs on:
Device: Unagi
OS: 1.1.0.0-prerelease
Build: 20130403070204
Launched calendar into blank month view (white page with no day grid shown).
| Reporter | ||
Comment 12•13 years ago
|
||
Bug still happening on:
Device: Unagi
OS: 1.1.0.0-prerelease
Build: 20130404070202
Dismissed the last instance of 3 duplicated event notifications via right-swipe on on its notification row then tapped new last duplicated instance. Calendar app didn't launch.
Comment 13•13 years ago
|
||
Triage 4/10 - Leo+ as reproducible and it's an UI failure.
blocking-b2g: leo? → leo+
Comment 14•13 years ago
|
||
James, can you take this bug? It is still reproduced.
Flags: needinfo?(jlal)
Comment 15•13 years ago
|
||
Will take this this week... this likely is present in other branches not really sure what the root cause is yet.
Assignee: nobody → jlal
Flags: needinfo?(jlal)
Comment 16•13 years ago
|
||
Here's a simple STR to reproduce this:
1. Create an event that will happen in a few minutes with an alarm reminder that will fire immediately upon creation of the event
2. After the alarm fires, kill the calendar process
3. Try clicking the calendar notification
Result - the calendar app will not launch to show the event
| Reporter | ||
Comment 17•13 years ago
|
||
| Assignee | ||
Comment 18•13 years ago
|
||
Hi James, Jason,
I found out that as user kill the calendar process and then click the calendar notification, the window manager didn't receive the mozChromeEvent from Gecko for launching the app.
If user didn't kill the calendar process, the window manager could receive the mozChromeEvent from Gecko.
So I though that this issue might be a Gecko issue.
How do you think?
Comment 19•13 years ago
|
||
After tracing the Gecko codes (b2g/chrome/content/shell.js), I found that the Gecko would fire a system message when the app is not launched (instead of through the mozChromeEvent). I'm wondering it's Gaia's responsibility to register a "notification" system message type to catch that?
The Dialer App seems working well for the same notification clicking behaviour. The Calendar App should play the same trick.
| Assignee | ||
Comment 20•13 years ago
|
||
Hi James,
I'm interesting in this bug.
Could I take this bug?
Thanks. :)
| Reporter | ||
Updated•13 years ago
|
Assignee: nobody → evanxd
| Assignee | ||
Comment 22•13 years ago
|
||
Hi James,
Thanks. :)
| Assignee | ||
Comment 23•13 years ago
|
||
Hi Gene,
In screenshot notification case, window manager in Gaia didn't received the mozChromeEvent from Gecko.
So It might be a Gecko issue.
You could check this.
Thanks. :)
| Assignee | ||
Comment 24•13 years ago
|
||
Hi James,
Please help me review this patch.
Thanks. :)
Attachment #742270 -
Flags: review?(jlal)
Comment 25•13 years ago
|
||
Wait! Isn't that a Gecko issue?
Comment 26•13 years ago
|
||
(In reply to Gene Lian [:gene] from comment #25)
> Wait! Isn't that a Gecko issue?
Looks like it. The patch here looks quite odd - it's making use mozApps here to launch the app in the calendar app, which makes no sense.
Updated•13 years ago
|
Attachment #742270 -
Flags: feedback-
Comment 27•13 years ago
|
||
@Gene: How would we actually fix this in gecko? When would we launch the app on tap? How would we correlate that tap to the callback registered in the app?
@Jason: This is actually correct.. if you look closely this obtains a reference to itself (the app) and calling launch simply brings the app into the foreground. I have not tried it yet but this looks sane to me so far...
@Evan: Thanks for picking this up so quickly! I will review this today... My general comment is I would like to see some kind of test that covers this case?
Comment 28•13 years ago
|
||
Comment on attachment 742270 [details]
Point to GitHub pull request: https://github.com/mozilla-b2g/gaia/pull/9426
Requested some minor structural changes to the code / tests... Looks sane to me... I didn't realize we had a system message for notification though it seems kinda obvious retrospectively... Is this documented somewhere?
Please set r? again after comments are addressed.
Attachment #742270 -
Flags: review?(jlal)
Updated•13 years ago
|
Attachment #742270 -
Flags: feedback-
| Assignee | ||
Comment 29•13 years ago
|
||
Hi James,
Sorry, as I knew, there is no document for the notification system message.
But we could see the code handled the notification system message in SMS app.
Please refer the GitHub page: https://github.com/mozilla-b2g/gaia/blob/master/apps/sms/js/activity_handler.js#L175
And I'm updating the code for your comments in GitHub.
Please review my code again after I done that.
Thanks. :)
| Assignee | ||
Comment 30•13 years ago
|
||
Comment on attachment 742270 [details]
Point to GitHub pull request: https://github.com/mozilla-b2g/gaia/pull/9426
Hi James,
Please help me review the patch.
Thanks. :)
Attachment #742270 -
Flags: review?(jlal)
Comment 31•13 years ago
|
||
Evan,
I reviewed the code itself on github (and left comments) there... Did you forget to push the code or something? As far as I can tell its in the same state as when I reviewed it last time... Will check again my time Monday.
Flags: needinfo?(evanxd)
| Assignee | ||
Comment 32•13 years ago
|
||
Hi James,
It's weird.
I already updated my code.
You could see the code I already updated in the GitHub page:
https://github.com/mozilla-b2g/gaia/pull/9426/
Could you check again.
Thanks. :)
Flags: needinfo?(evanxd)
Comment 33•13 years ago
|
||
Evan,
This looks good but can you please add a test ? Should be easy enough to write one now that the code is in the alarm controller and we have similar test cases there.
Flags: needinfo?(evanxd)
| Assignee | ||
Comment 34•13 years ago
|
||
Hi James,
I already added test for notification message handler in alarm_test.js.
Could you check it again? Thanks. :)
Flags: needinfo?(evanxd)
Comment 35•13 years ago
|
||
Thanks Evan, you still need one more test (that when we get the notification we actually fire app.go is really what I am looking for)
| Assignee | ||
Comment 36•13 years ago
|
||
Hi James,
I already added the #handleNotificationMessages test.
I learned a lot.
Thanks. :)
Updated•13 years ago
|
Attachment #742270 -
Flags: review?(jlal) → review+
Comment 37•13 years ago
|
||
Great work! Thanks for writing the tests :) r=me +++
Comment 38•13 years ago
|
||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 39•13 years ago
|
||
Hi James,
Thanks. :)
Comment 40•13 years ago
|
||
Uplifted c580c47da1f7cc421c7aa586b177f7dab881baae to:
v1-train: 5a8f90c579aebc326f42eff005382cf7314730de
status-b2g18:
--- → fixed
Comment 41•13 years ago
|
||
Unfortunately, this broke the linter (gjslint).
Should I back out or will you fix this very quick on both branches ?
Flags: needinfo?(evanxd)
| Assignee | ||
Comment 42•13 years ago
|
||
Hi Julien,
I'm working on this.
I'll fix this very quick.
Thanks. :)
Flags: needinfo?(evanxd)
| Assignee | ||
Comment 43•13 years ago
|
||
Hi Julien,
I already fixed the issues.
And I'm waiting for review.
After we merge the patch in Bug 868340 to master branch, you could merge it to v1-train branch.
Thanks. :)
Comment 44•13 years ago
|
||
Updated•13 years ago
|
Attachment #745961 -
Attachment mime type: text/plain → text/html
Comment 45•13 years ago
|
||
The other commit 678025d16f0cdc832e1d1193e7ba8989a068b613 broke lint. This merge cc04e015ed434ee9de4d210524695a2782a1c8c5 should be uplifted with the bug work.
Comment 48•13 years ago
|
||
Bug 867652- covers very similar ground and is tef+ I think we should uplift this as well since it effects similar feature stability and this patch touches similar areas of the code which also causes conflicts... Uplifting this prior to the other would greatly simplify the uplift and keep this code path consistent in master/v1.0.1
blocking-b2g: leo+ → tef?
Updated•13 years ago
|
blocking-b2g: tef? → tef+
status-b2g18-v1.0.1:
--- → affected
Comment 49•12 years ago
|
||
Comment 50•12 years ago
|
||
Verified with one bug caught by caveat - if you select a notification to see the event while the calendar app is in the background or foreground, then the back button becomes non-functional in the UI view two times in a row. The third click will work.
Comment 51•12 years ago
|
||
Verified on b2g18 as well. No issues on b2g18, so the issue seen in comment 50 likely is a 1.01 specific bug. Not a blocker, so I'm wont fixing that bug.
Keywords: verifyme
You need to log in
before you can comment on or make changes to this bug.
Description
•