Skip to content

PushServiceClientException with StatusCode.OK when sending message to Firefox on Android endpoint #36

Closed
@SeeWhat

Description

@SeeWhat

Description

When sending a message to an endpoint registered by Firefox on Android an exception is incorrectly thrown.

Reproduction Steps

Using Firefox on Android (tested with 131.0.3), register for push notifications.
Send a push notification to the registered endpoint.

Expected behavior

The mesage is received and no exception occurs.

Actual behavior

The mesage is received but a PushServiceClientException is thrown with no Body and a HttpStatusCode of OK (200)

Possibly cause

It seems the below line, should check for either HttpStatusCode.Created or HttpStatusCode.OK before throwing an exception.

if (pushMessageDeliveryRequestResponse.StatusCode == HttpStatusCode.Created)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions