Azure Notification Hub: Test Send returning unknown error on browser push, although info is passed correctly with tags

Agarwal, Ansh 50 Reputation points
2025-06-17T06:57:42.89+00:00

We are experiencing failure when test sending notification to browser

Test Send returning unknown error on browser push, although info is correctly passed, and we also have on our side browser registered with tag which is passed. (check screenshots)

kindly guide what is error which is said as unknown by notification hub? Just to inform, our browsers are continuously listening for the notification to come, but they are not reaching there.

User's image

User's image

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
383 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alex Burlachenko 9,780 Reputation points
    2025-06-17T09:53:56.77+00:00

    hi ansh ))

    thanks for posting this q on the q&a, its super helpful when folks share details like screenshots, really thx.

    So, check if u registered the browser platform correctly in azure. sometimes the p12 certificate or vapid keys get messed up during setup. also peek at the hub's diagnostic logs - they often hide clues that the ui doesn't show.

    and try sending without tags first. just hit 1-2 test devices directly. if that works, then bam - tag expressions might be the sneaky culprit.

    make sure ur service worker is awake and kicking. browsers love to put them to sleep like lazy cats. u can test this in chrome devtools under 'application > service workers'.

    also worth trying a different payload sizes. sometimes that 'unknown error' is just hub being picky about message length. start small then grow.

    and this might help in other tools too, check ur CORS settings. browser pushes get real fussy about cross origin stuff. devtools console will yell at u if thats the issue.

    keep us posted if these dont work %)

    rgds,

    Alex


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.