Sending push notifications to Notification Hub via Node.js used new sdk

206 Views Asked by At

I've found this how-to guide on sending push notifications with in a Node.js application, however, it seems to be using the now unsupported azure-sdk-for-node sdk. The new recommended javascript (azure-sdk-for-js) sdk is found here, however, I'm finding it difficult to map the functionality described in the tutorial to the new sdk. Specifically, the new repository makes no mentioned of a NotificationServiceHub, nor the createNotificationHubService method. I've found @azure/arm-notificationhubs, but this seems to be for managing purposes only.

Is it possible to send push notifications via the new javascript sdk?

1

There are 1 best solutions below

1
On

You can migration from Node.js packages (azure-sdk-for-node) to JavaScript packages (azure-sdk-for-js).

enter image description here

So it's possible to send push notifications via the new javascript sdk.