Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Messaging]firebase-admin is not able deliver Notification in Android Edge

Đang mở
#2,781 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@chong-shao đang làm issue này rồi.

Từ ngày 24/2/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

api: messaging
[READ] Step 1: Are you in the right place?

Able to generate token but await this.app.messaging().sendEachForMulticast(message) is working all other browser but dont know only android Edge has the problem.

[REQUIRED] Step 2: Describe your environment
  • Operating System version: _____ Mac OS
  • Firebase SDK version: _____
  • Firebase Product: _____ FCM
  • Node.js version: _____16.0.0
  • NPM version: _____

Device Information
WhatsApp Image 2024-11-22 at 11 51 33

[REQUIRED] Step 3: Describe the problem

In Android Chrome, I can successfully send notifications, but in Android Edge, notifications are not working. The sendEachForMulticast(message) method is returning success

Steps to reproduce:

Send the notification either through the Firebase Console or by using messaging.sendEachForMulticast(message)

Relevant Code:

import admin from 'firebase-admin'
admin.initializeApp({
credential: admin.credential.applicationDefault(),
});

// This registration token comes from the client FCM SDKs.
const edge = "dHoMX5A_-....................fSbpmNzTKYzjtjq6TaUaesUgnAfA0"
const chrome = "fGU9Zu8k7xFt.....................................vyEo-uKqQ7lUhQfjWQt2J1E"

const registrationToken = edge;

const message = {
data: {
score: '850',
time: '2:45'
},
notification: {
title: "I am title",
body: "I am Body",
},
tokens: [registrationToken]
};

const messaging = admin.messaging();
messaging.sendEachForMulticast(message)
.then((response) => {
console.log('Successfully sent message:', response);
})
.catch((error) => {
console.log('Error sending message:', error);
});

// TODO(you): code here to reproduce the problem

No Notification and no console error in Android Edge

Ngôn ngữ chính
TypeScript
Star
1.7k
Fork
419
Merge trung bình
4 ngày 20 giờ
Pull request đã merge (30 ngày)
16

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của firebase/firebase-admin-node

Tất cả issue của firebase/firebase-admin-node

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.