You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This topic shows you how to send notifications to all registered devices of a specific user from your mobile backend.
23
+
This topic shows you how to send notifications to all registered devices of a specific user from your mobile backend. It introduced the concept of [templates], which gives client applications the freedom of specifying payload formats and variable placeholders at registration. Send then hits every platform with these placeholders, enabling cross-platform notifications.
24
+
25
+
> [AZURE.NOTE] To get push working with cross-platform clients, you will need to complete this tutorial for each platform you would like to enable. You will only need to do the [mobile backend update](#backend) once for clients that share the same mobile backend.
24
26
25
27
##Prerequisites
26
28
@@ -32,18 +34,42 @@ Before you start this tutorial, you must have already completed these App Servic
32
34
33
35
##<aname="client"></a>Update your client to register for templates to handle cross-platform pushes
34
36
35
-
1.In **App.xaml.cs**, replace the **InitNotificationsAsync**method with the following:
37
+
1.Move the APNs registration snippets from **FinishedLaunching** in **AppDelegate.cs** to the **RefreshAsync**Task definition in **QSTodoListViewController.cs**. The registrations should happen after authentication completes.
36
38
37
-
private async void InitNotificationsAsync()
38
-
{
39
-
var channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();
0 commit comments