[Messaging]firebase-admin is not able deliver Notification in Android Edge
Maintainers usually reply within 1 day
@chong-shao is already working on this.
Since Feb 24, 2025.
Assessment
This issue has not been assessed yet.
Description
[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
[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
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 419
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 16
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/firebase-admin-node
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
firebase/firebase-admin-node#3234 ·
Maintainers usually reply within 1 day
-
[email protected] stable dependency tree fails npm audit via Storage uuid and Firestore google-gaxPossibly taken @lahirumaramba claimed this 19 days ago. Open
firebase/firebase-admin-node#3221 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
api: messaging
Difficulty 3/5 1-2 days Newbie friendliness 70/100
firebase/firebase-admin-node#3215 ·
Maintainers usually reply within 1 day
-
api: messaging
Difficulty 5/5 Over a week Newbie friendliness 28/100
firebase/firebase-admin-node#3214 ·
Maintainers usually reply within 1 day
-
[Firestore] Re-export functions from '@google-cloud/firestore/pipelines'May be free again @jonathanedey claimed this 89 days ago, and no pull request is open. Openapi: firestore type: feature request
firebase/firebase-admin-node#3183 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in firebase/firebase-admin-node
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
StabilityNexus/Fate-EVM-Frontend#153 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
code-yeongyu/oh-my-openagent#9039 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Tencent/teamai-cli#862 ·
Maintainers usually reply within 1 day
-
bug good first issue hacktoberfest redis
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
libredb/libredb-studio#1164 ·
Maintainers usually reply within 1 day
-
flake
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day