my question is the same as this one:
android device specific push notifications by using azure mobile services
But I'm using .Net backend. This is the part where I send the notification:
Dictionary<string, string> data = new Dictionary<string, string>() { { "message", "this is the message" } };
GooglePushMessage message = new GooglePushMessage(data, TimeSpan.FromHours(1));
Services.Push.SendAsync(message);
but there is no way to pass in the registration ID.
UPDATE
I've also tried using the payload property of GooglePushMessage:
GooglePushMessage message = new GooglePushMessage();
message.JsonPayload = JsonConvert.SerializeObject(new { registration_id = "blablabla", data = new { message = "77" } });
It turns out that it is ignoring the registration_id property, because I'm still getting the notification on my device.
What I want to achieve is to get API calls from third parties and use the registration ids that I have stored in my DB to send notifications to specific devices.