VAPID Push Notifications Don't work in Edge #414

Closed
opened 2026-04-05 16:19:39 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @tankerkiller125 on 7/24/2025

Describe the bug
Attempting to enable push notifications in Edge (Linux and Windows tested), I get an error message deviceToken length cannot be more than 500 characters

To Reproduce
Steps to reproduce the behavior:

  1. Go to the user settings page in Microsoft Edge
  2. Attempt to register device for push notifications
  3. See error

Expected behavior
Push notification should be registered

Screenshots

Image

Desktop (please complete the following information):

  • OS: Linux, Windows
  • Browser: Edge
  • Version: Master Branch

Deployment Type
Self-Hosted

Additional context
Request payload getting sent to the server from the browser (parts of sensitive information replaced, with character length matching)

{"projectId":{"_type":"ObjectID","value":"xxxxxxxx-01cd-451c-98a4-9cb1dcd5a7ef"},"deviceToken":"{\"endpoint\":\"https://wns2-ch1p.notify.windows.com/w/?token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX0ros54Motuq1gDiiQJP8rojsCrqhyC7x8KXXXXXfqb9BipDcrgFDLzTykhUEisgNNLJPGttU6pGEkIQ9yJkO8srnyUgefaYh45Ve4tlEZXXXXXXXXXXXKwiKjVfjR55HZRkncvLhyURwnFEnMJQTrWxCssyp53MuoUo0PGV1Op2FLIRJP2vx9CoPbjmgIFCRVvNGkHY0HjPfZHPnrX994e8yZh32Z15dAHU5tclhQl152ScWb3htNzNFveqdGT9HAXXXXXXXAm23X1IqGEJ8PGqSkqYqHPcypiGNeVst\",\"expirationTime\":null,\"keys\":{\"p256dh\":\"XXXXXXXXXXXXXXXXXXch6l0EZQCX2YWLN1Gk-b3zvmeLzR1zswtvrwZIXsEh3CWPpT_w02nKnh6eZOAOrZ2VfZ8\",\"auth\":\"XXXXXXXXXXXXXXXkQvPGag\"}}","deviceType":"web","deviceName":"Chrome on Linux x86_64"}
*Originally created by @tankerkiller125 on 7/24/2025* **Describe the bug** Attempting to enable push notifications in Edge (Linux and Windows tested), I get an error message `deviceToken length cannot be more than 500 characters` **To Reproduce** Steps to reproduce the behavior: 1. Go to the user settings page in Microsoft Edge 2. Attempt to register device for push notifications 3. See error **Expected behavior** Push notification should be registered **Screenshots** <img width="721" height="578" alt="Image" src="https://github.com/user-attachments/assets/36696852-b835-4113-8fb6-12f994632733" /> **Desktop (please complete the following information):** - OS: Linux, Windows - Browser: Edge - Version: Master Branch **Deployment Type** Self-Hosted **Additional context** Request payload getting sent to the server from the browser (parts of sensitive information replaced, with character length matching) ```json {"projectId":{"_type":"ObjectID","value":"xxxxxxxx-01cd-451c-98a4-9cb1dcd5a7ef"},"deviceToken":"{\"endpoint\":\"https://wns2-ch1p.notify.windows.com/w/?token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX0ros54Motuq1gDiiQJP8rojsCrqhyC7x8KXXXXXfqb9BipDcrgFDLzTykhUEisgNNLJPGttU6pGEkIQ9yJkO8srnyUgefaYh45Ve4tlEZXXXXXXXXXXXKwiKjVfjR55HZRkncvLhyURwnFEnMJQTrWxCssyp53MuoUo0PGV1Op2FLIRJP2vx9CoPbjmgIFCRVvNGkHY0HjPfZHPnrX994e8yZh32Z15dAHU5tclhQl152ScWb3htNzNFveqdGT9HAXXXXXXXAm23X1IqGEJ8PGqSkqYqHPcypiGNeVst\",\"expirationTime\":null,\"keys\":{\"p256dh\":\"XXXXXXXXXXXXXXXXXXch6l0EZQCX2YWLN1Gk-b3zvmeLzR1zswtvrwZIXsEh3CWPpT_w02nKnh6eZOAOrZ2VfZ8\",\"auth\":\"XXXXXXXXXXXXXXXkQvPGag\"}}","deviceType":"web","deviceName":"Chrome on Linux x86_64"} ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#414