Skip to content

Web Push deviceRegistration fails on iOS simulator #2067

@distante

Description

@distante

Reproduction

  1. Open iOS Simulator with any iOS 18 version
  2. go to your web/localhost app
  3. Instal it as PWA
  4. Open PWA
  5. Try to register the device for push notifications

Expectation

The registration is successful

Reliability

The registration fails because targetUrl and encryptionKey are not correctly generated

{
    "id": "01K****EDITED****",
    "deviceSecret": "01K1WF4QF8SZME23EWQ2DT3QNH",
    "platform": "browser",
    "formFactor": "desktop",
    "deviceIdentityToken": null,
    "push": {
        "recipient": {
            "transportType": "web",
            "targetUrl": "",
            "publicVapidKey": "BM-****EDITED****",
            "encryptionKey": {
                "p256dh": "",
                "auth": ""
            }
        }
    }
}

The same works on browser and android emulators.

If needed I can provide a test URL in private.

┆Issue is synchronized with this Jira Task by Unito

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions