簡體   English   中英

如何在Xamarin.Forms Android中將通知推送給特定用戶?

[英]How to push notification to specific users in Xamarin.Forms Android?

我已經實現了使用xamarin.forms Android的推送通知這個 ,但它發送通知到所有device.I要發送通知給特定的用戶我only.How能實現嗎?

我們為此使用標簽。 每個用戶都有一個用戶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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM