I am creating a PWA and following the example for subscribing to push notifications as detailed in this Google Lab - Adding Push Notifications to a Web App
The example uses Firebase Cloud Messaging (FCM) but we already have an Azure Notification Hub
Am I able to register with ANH using the same approach (JS only) - would it be a case of sending an API call with a payload containing the hub name, connection string and registration id?