Push notifications never seem to arrive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
Unassigned | ||
Ubuntu Push Notifications |
Fix Released
|
Critical
|
John Lenton | ||
ubuntu-push (Ubuntu RTM) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When I send push notifications, they never seem to arrive on my device (the x86 emulator, OS Ubuntu 14.10 (r5) according to System Settings).
I have created a simple QML app which registers for push notifications. Relevant QML is:
PushClient {
id: pushClient
});
});
}
appId: "org.kryogenix.
}
Button {
}
On clicking the button, I get printed: qml: token BLAHBLAHBLAH== ! as expected.
I have also edited manifest.json:
"hooks": {
"murmur": {
},
}
},
and created extra files
murmurHelper.
{
"policy_
],
"policy_
"template": "ubuntu-
}
murmurHelper.json:
{
"exec": "murmurHelper",
"app_id": "org.kryogenix.
}
and murmurHelper:
#!/usr/bin/python3
import sys
f1, f2 = sys.argv[1:3]
open(f2, "w").write(
I then try and send a push notification to this device with the following (from my main machine):
curl -d '{"appid"
and this returns the result
{"ok":true}
I believe that, although my helper just passes the input through, I am sending in the correct format from the server and so it should work. No notification arrives, according to the QML app.
To go further, I looked at /home/phablet/
2014/11/08 01:19:18.052240 DEBUG poking polld.
2014/11/08 01:19:18.052981 DEBUG waiting for polld to signal Done.
2014/11/08 01:19:18.053149 DEBUG polld Done.
2014/11/08 01:19:23.065840 DEBUG requested wakeup at 2014-11-08 01:24:23 +0000 UTC
2014/11/08 01:19:23.067090 DEBUG cleared wakelock cookie 5c5bc5e5-
2014/11/08 01:24:20.275830 DEBUG getting authorization for https:/
2014/11/08 01:24:21.067323 DEBUG WatchMethod: Register(
2014/11/08 01:24:21.350463 DEBUG WatchMethod: PopAll(
2014/11/08 01:24:21.505552 DEBUG WatchMethod: PopAll(
2014/11/08 01:24:23.017607 DEBUG got woken up; time is 2014-11-08 01:24:23.017577506 +0000 UTC
2014/11/08 01:24:23.019321 DEBUG got wakelock cookie of 88886d14-
2014/11/08 01:24:23.057149 DEBUG poking polld.
2014/11/08 01:24:23.057749 DEBUG waiting for polld to signal Done.
2014/11/08 01:24:23.057789 DEBUG polld Done.
2014/11/08 01:24:28.068062 DEBUG requested wakeup at 2014-11-08 01:29:28 +0000 UTC
2014/11/08 01:24:28.069016 DEBUG cleared wakelock cookie 88886d14-
2014/11/08 01:29:28.013458 DEBUG got woken up; time is 2014-11-08 01:29:28.013428177 +0000 UTC
2014/11/08 01:29:28.015106 DEBUG got wakelock cookie of 8c0487c1-
2014/11/08 01:29:28.052101 DEBUG poking polld.
2014/11/08 01:29:28.052985 DEBUG waiting for polld to signal Done.
2014/11/08 01:29:28.053044 DEBUG polld Done.
2014/11/08 01:29:33.064036 DEBUG requested wakeup at 2014-11-08 01:34:33 +0000 UTC
2014/11/08 01:29:33.064914 DEBUG cleared wakelock cookie 8c0487c1-
2014/11/08 01:34:33.017382 DEBUG got woken up; time is 2014-11-08 01:34:33.017309395 +0000 UTC
2014/11/08 01:34:33.021196 DEBUG got wakelock cookie of c8fd9e97-
2014/11/08 01:34:33.056186 DEBUG poking polld.
2014/11/08 01:34:33.057449 DEBUG waiting for polld to signal Done.
2014/11/08 01:34:33.057538 DEBUG polld Done.
2014/11/08 01:34:38.066430 DEBUG requested wakeup at 2014-11-08 01:39:38 +0000 UTC
2014/11/08 01:34:38.067096 DEBUG cleared wakelock cookie c8fd9e97-
Related branches
- Bret Barker (community): Approve
-
Diff: 674 lines (+139/-87)23 files modifiedbus/connectivity/connectivity.go (+11/-7)
bus/connectivity/connectivity_test.go (+10/-11)
bus/endpoint.go (+6/-6)
bus/networkmanager/networkmanager.go (+6/-6)
bus/notifications/raw.go (+1/-1)
client/client.go (+2/-3)
client/client_test.go (+1/-1)
client/service/service.go (+3/-3)
client/session/session.go (+34/-2)
identifier/identifier.go (+1/-1)
identifier/identifier_test.go (+1/-1)
launch_helper/helper_finder/helper_finder.go (+1/-1)
launch_helper/helper_finder/helper_finder_test.go (+1/-1)
launch_helper/legacy/legacy.go (+1/-1)
launch_helper/legacy/legacy_test.go (+1/-1)
messaging/messaging.go (+1/-1)
testing/helpers.go (+1/-1)
urldispatcher/curldispatcher/curldispatcher.go (+1/-1)
urldispatcher/urldispatcher.go (+2/-2)
urldispatcher/urldispatcher_test.go (+2/-2)
util/redialer.go (+36/-27)
util/redialer_states.gv (+9/-0)
util/redialer_test.go (+7/-7)
- Ubuntu Push Hackers: Pending requested
-
Diff: 488 lines (+116/-70)14 files modifiedbus/connectivity/connectivity.go (+16/-12)
bus/connectivity/connectivity_test.go (+10/-11)
bus/connectivity/webchecker.go (+4/-4)
bus/endpoint.go (+1/-1)
bus/systemimage/systemimage.go (+1/-1)
client/client.go (+1/-2)
client/service/postal.go (+0/-1)
client/session/session.go (+28/-1)
dependencies.tsv (+1/-1)
launch_helper/kindpool.go (+1/-1)
poller/poller.go (+1/-1)
util/redialer.go (+36/-27)
util/redialer_states.gv (+9/-0)
util/redialer_test.go (+7/-7)
- Bret Barker (community): Approve
-
Diff: 937 lines (+185/-104)31 files modifiedbus/connectivity/connectivity.go (+23/-12)
bus/connectivity/connectivity_test.go (+10/-11)
bus/connectivity/webchecker.go (+4/-4)
bus/endpoint.go (+7/-7)
bus/networkmanager/networkmanager.go (+6/-6)
bus/notifications/raw.go (+1/-1)
bus/systemimage/systemimage.go (+1/-1)
client/client.go (+3/-3)
client/client_test.go (+1/-1)
client/service/postal.go (+0/-1)
client/service/service.go (+3/-3)
client/session/session.go (+38/-2)
dependencies.tsv (+1/-1)
identifier/identifier.go (+1/-1)
identifier/identifier_test.go (+1/-1)
launch_helper/helper_finder/helper_finder.go (+1/-1)
launch_helper/helper_finder/helper_finder_test.go (+1/-1)
launch_helper/kindpool.go (+1/-1)
launch_helper/legacy/legacy.go (+1/-1)
launch_helper/legacy/legacy_test.go (+1/-1)
messaging/messaging.go (+1/-1)
poller/poller.go (+1/-1)
server/acceptance/acceptanceclient.go (+2/-0)
server/acceptance/suites/suite.go (+9/-2)
testing/helpers.go (+1/-1)
ubuntu-push-client.go (+18/-0)
urldispatcher/curldispatcher/curldispatcher.go (+1/-1)
urldispatcher/urldispatcher.go (+2/-2)
urldispatcher/urldispatcher_test.go (+2/-2)
util/redialer.go (+36/-27)
util/redialer_test.go (+7/-7)
Changed in ubuntu-push: | |
importance: | Undecided → High |
status: | New → Confirmed |
assignee: | nobody → John Lenton (chipaca) |
Changed in ubuntu-push: | |
importance: | High → Critical |
Changed in canonical-devices-system-image: | |
importance: | Undecided → High |
milestone: | none → ww05-2015 |
status: | New → Confirmed |
Changed in canonical-devices-system-image: | |
status: | Confirmed → Fix Released |
Changed in ubuntu-push: | |
status: | In Progress → Fix Committed |
Changed in ubuntu-push: | |
status: | Fix Committed → Fix Released |
ubuntu-push-client was restarted at approx 02.04.