Sending FCM notification with Fids Return NotRegistered

Aperta
#534 5 commenti 1 reazione 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@yvonnep165 ci sta già lavorando.

Dal 17/8/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Environment
  • FirebaseAdmin: 3.6.0
  • .NET: (your version)
  • Platform: iOS
  • FCM HTTP v1 (through Firebase Admin SDK)
Description

I'm trying to migrate from registration tokens to FIDs as recommended by the SDK.

When sending a notification to an Apple device using the Fid property of Message, the Admin SDK always returns a FirebaseMessagingException with the error NotRegistered.

However, using the exact same FID from the Firebase Console ("Send test message"), the notification is delivered successfully to the device.

This suggests either:

  • the .NET Admin SDK is not sending the request correctly when using Message.Fid, or
  • there is a backend/API discrepancy between the Admin SDK and the Firebase Console.
Code
var message = new Message
{
    Fid = fid,
    Notification = new Notification
    {
        Title = "Test",
        Body = "Hello"
    }
};

await FirebaseMessaging.DefaultInstance.SendAsync(message);
Lingua principale
C#
Stelle
408
Fork
147
Merge medio
1g 3h
PR unite (30g)
10

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di firebase/firebase-admin-dotnet

Tutte le issue di firebase/firebase-admin-dotnet

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.