2

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?

cgat
  • 3,689
  • 4
  • 24
  • 38

1 Answers1

0

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.

Jason Pan
  • 15,263
  • 1
  • 14
  • 29
  • Right, I did see this. In the old sdk, the notification hub service was under the `azure-sb` module (service bus) and the new sdk `@azure/service-bus` does not support this functionality. I actually found this issue, which unfortunately confirms what I found: https://github.com/Azure/azure-sdk-for-js/issues/3009 – cgat Dec 09 '20 at 16:54