【发布时间】:2017-07-22 16:40:21
【问题描述】:
我想使用 firebase 仅向一位用户发送通知,并且他的令牌保存在 firebase batabase 中。我将从数据库中检索此令牌的数据,但如何向该用户发送通知。
refForLeaveReq.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
// Here i want to send Notification to only one user and his id is 7bvftaksdyej2383dnd4jdbek4dksb3kdh
}
@Override
public void onCancelled(DatabaseError databaseError) {
}
});
如果有人知道发送通知而不是 firebase 的其他技术,他/她可以告诉我。
【问题讨论】:
标签: android firebase-authentication firebase-cloud-messaging firebase-notifications