[英]How to push notification to specific users in Xamarin.Forms Android?
We use tags for this. 我们为此使用标签。 Each user has a user Id and so when the device registers with azure, you add their user Id as a tag to the registration.
每个用户都有一个用户ID,因此当设备以天蓝色注册时,您可以将其用户ID作为标签添加到注册中。
protected override void OnRegistered(Context context, string registrationId) {
...
var tags = new List<string>() { "userId4" }; // Your UserId here
...
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.