Closed
Bug 1375283
Opened 9 years ago
Closed 9 years ago
WebPush not working properly on Android
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: jovan.gerodetti, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:55.0) Gecko/20100101 Firefox/55.0
Build ID: 20170615070049
Steps to reproduce:
Try to receive a push notification:
A) Via Telegram Web
1. close all tabs that run telegram web
2. send a message, with an other device, to a bot and wait for the response
2. hook your device up to WebIDE and look at the logs.
B) use https://gauntface.github.io/simple-push-demo/
1. enable Push notifications
2. trigger the notification
Actual results:
the push seems to appear but doesn't arrive in the service worker, since no notifications show up.
> 00:14:12.323 PushServiceAndroidGCM:ReceivedPushMessage with data Object { channelID: "cadbac2c50904d55ab8d4c79ae48d877", con: "aesgcm", enc: "salt=tv6aYxXGddeoPe9U3RWgcA", cryptokey: "dh=BHIqS9QMh3OLvegyw5zaW8B5AkIw-pYD…", message: "dFvT2ELXdu-d3m-QVydH8sWwzi1Hcs_pGk2…", profileName: "default", profilePath: "/data/user/0/org.mozilla.fennec/fil…", service: "webpush" } PushServiceAndroidGCM.jsm:105
> 00:14:12.339 PushServiceAndroidGCM:Delivering message to main PushService: ArrayBuffer { byteLength: 183 } Object { encryption_key: undefined, crypto_key: "dh=BHIqS9QMh3OLvegyw5zaW8B5AkIw-pYD…", encryption: "salt=tv6aYxXGddeoPe9U3RWgcA", encoding: "aesgcm" } PushServiceAndroidGCM.jsm:109
> 00:14:12.362 PushService:receivedPushMessage() PushService.jsm:747
> 00:14:12.367 PushDB:getByKeyID() PushDB.jsm:197
> 00:14:12.396 PushDB:getByKeyID: Got record Object { pushEndpoint: "https://updates.push.services.mozil…", scope: "https://web.telegram.org/", originAttributes: "", pushCount: 0, lastPush: 0, p256dhPublicKey: ArrayBuffer, p256dhPrivateKey: Object, authenticationSecret: Uint8Array[16], systemRecord: false, appServerKey: null, 4 more… } PushDB.jsm:208
> 00:14:12.440 PushDB:update: Update successful cadbac2c50904d55ab8d4c79ae48d877 Object { pushEndpoint: "https://updates.push.services.mozil…", scope: "https://web.telegram.org/", originAttributes: "", pushCount: 1, lastPush: 1498083252436, p256dhPublicKey: ArrayBuffer, p256dhPrivateKey: Object, authenticationSecret: Uint8Array[16], systemRecord: false, appServerKey: null, 4 more… } PushDB.jsm:406
> 00:14:12.518 PushService:notifyApp() "https://web.telegram.org/" PushService.jsm:920
> 00:14:15.480 PushService:updateQuota() PushService.jsm:841
> 00:14:15.511 PushDB:update: Update successful cadbac2c50904d55ab8d4c79ae48d877 Object { pushEndpoint: "https://updates.push.services.mozil…", scope: "https://web.telegram.org/", originAttributes: "", pushCount: 1, lastPush: 1498083252436, p256dhPublicKey: ArrayBuffer, p256dhPrivateKey: Object, authenticationSecret: Uint8Array[16], systemRecord: false, appServerKey: null, 4 more… } PushDB.jsm:406
> 00:15:30.115 PushServiceAndroidGCM:ReceivedPushMessage with data Object { channelID: "cadbac2c50904d55ab8d4c79ae48d877", con: "aesgcm", enc: "salt=MuIbQ6JfM0Pwxtjq6TXlqQ", cryptokey: "dh=BEWW3mJlxmtU5NfaFEco65-hVCEEVyfE…", message: "f0jjyYpOryPnqU3gVJBoESPL4B9N4Ar7NOE…" } PushServiceAndroidGCM.jsm:105
> 00:15:30.128 PushServiceAndroidGCM:Delivering message to main PushService: ArrayBuffer { byteLength: 451 } Object { encryption_key: undefined, crypto_key: "dh=BEWW3mJlxmtU5NfaFEco65-hVCEEVyfE…", encryption: "salt=MuIbQ6JfM0Pwxtjq6TXlqQ", encoding: "aesgcm" } PushServiceAndroidGCM.jsm:109
> 00:15:30.141 PushService:receivedPushMessage() PushService.jsm:747
> 00:15:30.147 PushDB:getByKeyID() PushDB.jsm:197
> 00:15:30.185 PushDB:getByKeyID: Got record Object { pushEndpoint: "https://updates.push.services.mozil…", scope: "https://web.telegram.org/", originAttributes: "", pushCount: 1, lastPush: 1498083252436, p256dhPublicKey: ArrayBuffer, p256dhPrivateKey: Object, authenticationSecret: Uint8Array[16], systemRecord: false, appServerKey: null, 4 more… } PushDB.jsm:208
> 00:15:30.228 PushDB:update: Update successful cadbac2c50904d55ab8d4c79ae48d877 Object { pushEndpoint: "https://updates.push.services.mozil…", scope: "https://web.telegram.org/", originAttributes: "", pushCount: 2, lastPush: 1498083330224, p256dhPublicKey: ArrayBuffer, p256dhPrivateKey: Object, authenticationSecret: Uint8Array[16], systemRecord: false, appServerKey: null, 4 more… } PushDB.jsm:406
> 00:15:30.300 PushService:notifyApp() "https://web.telegram.org/" PushService.jsm:920
> 00:15:33.300 PushService:updateQuota() PushService.jsm:841
> 00:15:33.330 PushDB:update: Update successful cadbac2c50904d55ab8d4c79ae48d877 Object { pushEndpoint: "https://updates.push.services.mozil…", scope: "https://web.telegram.org/", originAttributes: "", pushCount: 2, lastPush: 1498083330224, p256dhPublicKey: ArrayBuffer, p256dhPrivateKey: Object, authenticationSecret: Uint8Array[16], systemRecord: false, appServerKey: null, 4 more… } PushDB.jsm:406
> 00:17:36.281 PushServiceAndroidGCM:ReceivedPushMessage with data Object { channelID: "cadbac2c50904d55ab8d4c79ae48d877", con: "aesgcm", enc: "salt=wUiC5-FRkKvV1l4hgj0PUw", cryptokey: "dh=BPu1BBBMi4NbRtXRjWIC6uvptGAcIkr_…", message: "K4NevSz67Nf8GrRyBHnTWaqWJ2jfivS6jPp…" } PushServiceAndroidGCM.jsm:105
> 00:17:36.294 PushServiceAndroidGCM:Delivering message to main PushService: ArrayBuffer { byteLength: 182 } Object { encryption_key: undefined, crypto_key: "dh=BPu1BBBMi4NbRtXRjWIC6uvptGAcIkr_…", encryption: "salt=wUiC5-FRkKvV1l4hgj0PUw", encoding: "aesgcm" } PushServiceAndroidGCM.jsm:109
> 00:17:36.307 PushService:receivedPushMessage() PushService.jsm:747
> 00:17:36.310 PushDB:getByKeyID() PushDB.jsm:197
> 00:17:36.335 PushDB:getByKeyID: Got record Object { pushEndpoint: "https://updates.push.services.mozil…", scope: "https://web.telegram.org/", originAttributes: "", pushCount: 2, lastPush: 1498083330224, p256dhPublicKey: ArrayBuffer, p256dhPrivateKey: Object, authenticationSecret: Uint8Array[16], systemRecord: false, appServerKey: null, 4 more… } PushDB.jsm:208
> 00:17:36.371 PushDB:update: Update successful cadbac2c50904d55ab8d4c79ae48d877 Object { pushEndpoint: "https://updates.push.services.mozil…", scope: "https://web.telegram.org/", originAttributes: "", pushCount: 3, lastPush: 1498083456367, p256dhPublicKey: ArrayBuffer, p256dhPrivateKey: Object, authenticationSecret: Uint8Array[16], systemRecord: false, appServerKey: null, 4 more… } PushDB.jsm:406
> 00:17:36.408 PushService:notifyApp() "https://web.telegram.org/" PushService.jsm:920
> 00:17:39.429 PushService:updateQuota() PushService.jsm:841
> 00:17:39.459 PushDB:update: Update successful cadbac2c50904d55ab8d4c79ae48d877 Object { pushEndpoint: "https://updates.push.services.mozil…", scope: "https://web.telegram.org/", originAttributes: "", pushCount: 3, lastPush: 1498083456367, p256dhPublicKey: ArrayBuffer, p256dhPrivateKey: Object, authenticationSecret: Uint8Array[16], systemRecord: false, appServerKey: null, 4 more… } PushDB.jsm:406
Expected results:
The web apps serviceworker should get started so a notification can be displayed.
| Reporter | ||
Updated•9 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
| Reporter | ||
Updated•9 years ago
|
Resolution: INVALID → WORKSFORME
| Assignee | ||
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•