Skip to content

Latest commit

 

History

History
61 lines (34 loc) · 1.95 KB

Demo-Nodejs.md

File metadata and controls

61 lines (34 loc) · 1.95 KB

AZ-204 Demo: Notification Hub

In the demo you will create Notification Hub. Build UWP app and receive the notifications. Windows 10 and VS 2019 is required.

Before delivery:

  • Visual Studio 2019 required with UWP dev feature.
  • Following guidelines will help you setup Azure Environment and test the app.

NOTE: On the step Create an app in Windows Store. UWP application must be updated with parameters in package exactly as recommended in AppManifest.xml:

pakcage

  • Code fo the UWP with schema could be find in "AlexNotificaitonDemo" folder. Load AlexNotificationDemo\AlexNotificationDemo.sln project.

  • From App.xaml.cs update following strings with your values collected on previous step:

    sealed partial class App : Application
    {
        static string ConnectionString = "<your string>";
        static string HubName = "<your hub name>";
  • One project in Sender folder and modify variables to setup your Azure hub connection in index.js
const hubname = '<your hub name>';
const connectionstring = '<your string>';

Do not forget to enable receiving notification during presenting desktop in MS Teams Open Windows > Settings > Focus assistance enable Priority only

pakcage

Then add your application in priority list.

pakcage

In Class

  1. Run the UWP Application to get successful registration message:

uwp

  1. From the Azure portal select your Notification hub and run the test. You should select windows and tost notification. The Notification should appears on your host in right bottom corner:

toast

  1. From "Sender" folder run command node .\index.js.

  2. The notification should arrive and appearers in your right bottom corner.

cat