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.