Skip to content

Commit 87b1fd6

Browse files
committed
Add callouts to screenshot
1 parent bd1f053 commit 87b1fd6

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

articles/azure-functions/functions-bindings-notification-hubs.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ The notifications you send can be native notifications or [template notification
3636

3737
Template examples for each language:
3838

39-
* [C# script - out parameter](#c-script-template-example-out-parameter)
40-
* [C# script - asynchronous](#c-script-template-example-asynchronous)
41-
* [C# script - JSON](#c-script-template-example-json)
42-
* [C# script - library types](#c-script-template-example-library-types)
39+
* [C# script: out parameter](#c-script-template-example-out-parameter)
40+
* [C# script: asynchronous](#c-script-template-example-asynchronous)
41+
* [C# script: JSON](#c-script-template-example-json)
42+
* [C# script: library types](#c-script-template-example-library-types)
4343
* [F#](#f-template-example)
4444
* [JavaScript](#javascript-template-example)
4545

4646
### C# script template example: out parameter
4747

48-
This example sends a notification for a [template registration](../notification-hubs/notification-hubs-templates-cross-platform-push-messages.md) that contains a `message` placeholder in the template.
48+
This example sends a notification for a [template registration](../notification-hubs/notification-hubs-templates-cross-platform-push-messages.md) that contains a `message` placeholder in the template:
4949

5050
```cs
5151
using System;
@@ -68,7 +68,7 @@ private static IDictionary<string, string> GetTemplateProperties(string message)
6868

6969
### C# script template example: asynchronous
7070

71-
If you're using asynchronous code, out parameters aren't allowed. In this case, use `IAsyncCollector` to return your template notification. The following code is an asynchronous example of the previous example.
71+
If you're using asynchronous code, out parameters aren't allowed. In this case, use `IAsyncCollector` to return your template notification. The following code is an asynchronous example of the previous example:
7272

7373
```cs
7474
using System;
@@ -93,7 +93,7 @@ private static IDictionary<string, string> GetTemplateProperties(string message)
9393

9494
### C# script template example: JSON
9595

96-
This example sends a notification for a [template registration](../notification-hubs/notification-hubs-templates-cross-platform-push-messages.md) that contains a `message` placeholder in the template using a valid JSON string.
96+
This example sends a notification for a [template registration](../notification-hubs/notification-hubs-templates-cross-platform-push-messages.md) that contains a `message` placeholder in the template using a valid JSON string:
9797

9898
```cs
9999
using System;
@@ -107,7 +107,7 @@ public static void Run(string myQueueItem, out string notification, TraceWriter
107107

108108
### C# script template example: library types
109109

110-
This example shows how to use types defined in the [Microsoft Azure Notification Hubs Library](https://www.nuget.org/packages/Microsoft.Azure.NotificationHubs/).
110+
This example shows how to use types defined in the [Microsoft Azure Notification Hubs Library](https://www.nuget.org/packages/Microsoft.Azure.NotificationHubs/):
111111

112112
```cs
113113
#r "Microsoft.Azure.NotificationHubs"
@@ -132,7 +132,7 @@ private static TemplateNotification GetTemplateNotification(string message)
132132

133133
### F# template example
134134

135-
This example sends a notification for a [template registration](../notification-hubs/notification-hubs-templates-cross-platform-push-messages.md) that contains `location` and `message`.
135+
This example sends a notification for a [template registration](../notification-hubs/notification-hubs-templates-cross-platform-push-messages.md) that contains `location` and `message`:
136136

137137
```fsharp
138138
let Run(myTimer: TimerInfo, notification: byref<IDictionary<string, string>>) =
@@ -141,7 +141,7 @@ let Run(myTimer: TimerInfo, notification: byref<IDictionary<string, string>>) =
141141

142142
### JavaScript template example
143143

144-
This example sends a notification for a [template registration](../notification-hubs/notification-hubs-templates-cross-platform-push-messages.md) that contains `location` and `message`.
144+
This example sends a notification for a [template registration](../notification-hubs/notification-hubs-templates-cross-platform-push-messages.md) that contains `location` and `message`:
145145

146146
```javascript
147147
module.exports = async function (context, myTimer) {
@@ -175,7 +175,7 @@ public static async Task Run(string myQueueItem, IAsyncCollector<Notification> n
175175
{
176176
log.Info($"C# Queue trigger function processed: {myQueueItem}");
177177

178-
// In this example the queue item is a new user to be processed in the form of a JSON string with
178+
// In this example, the queue item is a new user to be processed in the form of a JSON string with
179179
// a "name" value.
180180
//
181181
// The JSON format for a native Apple Push Notification Service (APNS) notification is:
@@ -206,7 +206,7 @@ public static async Task Run(string myQueueItem, IAsyncCollector<Notification> n
206206
{
207207
log.Info($"C# Queue trigger function processed: {myQueueItem}");
208208

209-
// In this example the queue item is a new user to be processed in the form of a JSON string with
209+
// In this example, the queue item is a new user to be processed in the form of a JSON string with
210210
// a "name" value.
211211
//
212212
// The XML format for a native WNS toast notification is ...
@@ -251,13 +251,13 @@ The following table lists the binding configuration properties that you set in t
251251
|**tagExpression** |**TagExpression** | Tag expressions allow you to specify that notifications be delivered to a set of devices that are registered to receive notifications matching the tag expression. For more information, see [Routing and tag expressions](../notification-hubs/notification-hubs-tags-segment-push-message.md). |
252252
|**hubName** | **HubName** | The name of the notification hub resource in the Azure portal. |
253253
|**connection** | **ConnectionStringSetting** | The name of an app setting that contains a Notification Hubs connection string. Set the connection string to the *DefaultFullSharedAccessSignature* value for your notification hub. For more information, see [Connection string setup](#connection-string-setup). |
254-
|**platform** | **Platform** | The platform property indicates the client platform your notification targets. By default, if the platform property is omitted from the output binding, template notifications can be used to target any platform configured on the Azure Notification Hub. For more information about using templates to send cross-platform notifications with an Azure Notification Hub, see [Templates](../notification-hubs/notification-hubs-templates-cross-platform-push-messages.md). When **platform** is set, it must be one of the following values: <ul><li><code>apns</code>: Apple Push Notification Service. For more information on configuring the notification hub for APNS and receiving the notification in a client app, see [Send push notifications to iOS with Azure Notification Hubs](../notification-hubs/xamarin-notification-hubs-ios-push-notification-apns-get-started.md).</li><li><code>adm</code>: [Amazon Device Messaging](https://developer.amazon.com/device-messaging). For more information on configuring the notification hub for Azure Deployment Manager (ADM) and receiving the notification in a Kindle app, see [Send push notifications to Android devices using Firebase SDK](../notification-hubs/notification-hubs-android-push-notification-google-fcm-get-started.md).</li><li><code>wns</code>: [Windows Push Notification Services](/windows/uwp/design/shell/tiles-and-notifications/windows-push-notification-services--wns--overview) targeting Windows platforms. WNS also supports Windows Phone 8.1 and later. For more information, see [Send notifications to Universal Windows Platform apps using Azure Notification Hubs](../notification-hubs/notification-hubs-windows-store-dotnet-get-started-wns-push-notification.md).</li><li><code>mpns</code>: [Microsoft Push Notification Service](/previous-versions/windows/apps/ff402558(v=vs.105)). This platform supports Windows Phone 8 and earlier Windows Phone platforms. For more information, see [Send notifications to Universal Windows Platform apps using Azure Notification Hubs](../notification-hubs/notification-hubs-windows-mobile-push-notifications-mpns.md).</li></ul> |
254+
|**platform** | **Platform** | The platform property indicates the client platform your notification targets. By default, if the platform property is omitted from the output binding, template notifications can be used to target any platform configured on the Azure Notification Hub. For more information about using templates to send cross-platform notifications with an Azure Notification Hub, see [Notification Hubs templates](../notification-hubs/notification-hubs-templates-cross-platform-push-messages.md). When **platform** is set, it must be one of the following values: <ul><li><code>apns</code>: Apple Push Notification Service. For more information on configuring the notification hub for APNS and receiving the notification in a client app, see [Send push notifications to iOS with Azure Notification Hubs](../notification-hubs/xamarin-notification-hubs-ios-push-notification-apns-get-started.md).</li><li><code>adm</code>: [Amazon Device Messaging](https://developer.amazon.com/device-messaging). For more information on configuring the notification hub for Azure Deployment Manager (ADM) and receiving the notification in a Kindle app, see [Send push notifications to Android devices using Firebase SDK](../notification-hubs/notification-hubs-android-push-notification-google-fcm-get-started.md).</li><li><code>wns</code>: [Windows Push Notification Services](/windows/uwp/design/shell/tiles-and-notifications/windows-push-notification-services--wns--overview) targeting Windows platforms. WNS also supports Windows Phone 8.1 and later. For more information, see [Send notifications to Universal Windows Platform apps using Azure Notification Hubs](../notification-hubs/notification-hubs-windows-store-dotnet-get-started-wns-push-notification.md).</li><li><code>mpns</code>: [Microsoft Push Notification Service](/previous-versions/windows/apps/ff402558(v=vs.105)). This platform supports Windows Phone 8 and earlier Windows Phone platforms. For more information, see [Send notifications to Universal Windows Platform apps using Azure Notification Hubs](../notification-hubs/notification-hubs-windows-mobile-push-notifications-mpns.md).</li></ul> |
255255

256256
[!INCLUDE [app settings to local.settings.json](../../includes/functions-app-settings-local.md)]
257257

258258
### function.json file example
259259

260-
Here's an example of a Notification Hubs binding in a *function.json* file.
260+
Here's an example of a Notification Hubs binding in a *function.json* file:
261261

262262
```json
263263
{
@@ -278,7 +278,7 @@ Here's an example of a Notification Hubs binding in a *function.json* file.
278278

279279
### Connection string setup
280280

281-
To use a notification hub output binding, you must configure the connection string for the hub. You can select an existing notification hub or create a new one right from the **Integrate** tab in the Azure portal. You can also configure the connection string manually.
281+
To use a notification hub output binding, you must configure the connection string for the hub. You can select an existing notification hub or create a new one from the **Integrate** tab in the Azure portal. You can also configure the connection string manually.
282282

283283
To configure the connection string to an existing notification hub:
284284

71 Bytes
Loading

0 commit comments

Comments
 (0)