firebase / firebase/firebase-admin-dotnet

Sending FCM notification with Fids Return NotRegistered

Open
#534 3 comments 1 reaction 1 assignee Claimed by @yvonnep165 View on GitHub
Dominant language
C#
Stars
408
Forks
146
Avg merge
22h 7m
Merged PRs (30d)
1

Description

### 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

```csharp
var message = new Message
{
Fid = fid,
Notification = new Notification
{
Title = "Test",
Body = "Hello"
}
};

await FirebaseMessaging.DefaultInstance.SendAsync(message);

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.