Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

How to send azure push notifications to specific user

$
0
0

Hi everyone, I have tried to send push notifications to users, luckily I got it but my requirement is need to send push notifications to specific user, I have tried a lot but not luck. Please suggest any idea.

Sample Code for sending notifications to the user:

 NotificationHubClient hub =  NotificationHubClient.CreateClientFromConnectionString(connectionString, "HubName");

 await hub.SendAppleNativeNotificationAsync(alertJson, userId.ToString());

When I tried the above code, I am not receiving any push notifications. If we removing userId in above code push notifications is send to the user successfully but notification is send to all registered users. My actual requirement is sending push notification to specific user.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>