Skip to content

Sending FCM notification with Fids Return NotRegistered #534

Description

@FabienBounoir

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions