jorisbrauns / Cordova-Azure-Notificationhubs

Cordova plugin for Azure Notification Hubs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cordova-Azure-Notificationhubs

Cordova plugin for Azure Notification Hubs

Send push notifications to any platform, from any backend. Use Notification Hubs to:

  • Reach all major platforms including iOS, Android, Windows
  • Use with any backend, .NET, Java, PHP, or Python, cloud or on-premises
  • Broadcast push notifications to millions of users at once or tailor notifications to individual users
  • Tailor notifications by audience, language, location, and other personal preferences
  • Scale instantly to millions of devices
  • Target content to dynamic user segments
  • Achieve extreme scale

##Universal Windows Platform Sample Before you're app is able to retreive push notifications from the Azure Notification Hubs you need to associate the app with the Windows Store and configure the WNS in Azure.

    azureNotificationHubs.register("<HubName>","<DefaultListenSharedAccessSignature>", function (result) {
            document.getElementById("notificationid").innerHTML = result;
    }, function () {
            console.log("Plugin failed registering azure notification hubs");
    });

Important!

Make sure to configure your build.json with the following information (replace path with your own certificate and publisherid):

    "windows": {
            "release": {
                "packageCertificateKeyFile": "res\\native\\windows\\CordovaApp.pfx",
                "publisherId": "<replace with your publisherId>"
            },
            "debug": {
                "packageCertificateKeyFile": "res\\native\\windows\\CordovaApp.pfx",
                "publisherId": "<replace with your publisherId>"
            }
    }

About

Cordova plugin for Azure Notification Hubs

License:Other


Languages

Language:Java 55.5%Language:JavaScript 30.4%Language:C# 11.9%Language:Objective-C 2.2%