firebase / firebase-admin-dotnet

Firebase Admin .NET SDK
https://firebase.google.com/docs/admin/setup
Apache License 2.0
366 stars 131 forks source link

FCMOptions Link on Push Notification Click (Windows Notification) does nothing #309

Closed coderaven closed 2 years ago

coderaven commented 2 years ago

[REQUIRED] Step 2: Describe your environment

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

Relevant Code:

var message = new Message {
                                Token = "myTokenHere",
                                Notification = firebasePushNotificationData,
                                Data = notification.Data,
                                Webpush = new WebpushConfig {
                                      Notification = new WebpushNotification {
                                          Title = notification.Title,
                                          Badge = "https://localhost:44380/images/badge.png",
                                          Icon = "https://localhost:44380/images/badge.png"
                                      },
                                      FcmOptions = new WebpushFcmOptions {
                                          Link = "https://localhost:44380/chats/5860b949-5467-456f-bc1b-9f9d89db5b7c"
                                      }
                                 }
                          };

              var resultData = await FirebaseMessaging.DefaultInstance.SendAsync(message);
zwu52 commented 2 years ago

@coderaven , Hi, we no longer making releases to the <= v8 client SDK. Please consider migrating to v9 which might resolve the issue. Please let us know if this help.

hiranya911 commented 2 years ago

@zwu52 this issue is about the Admin .NET SDK, which uses the FCM v1 API. Are you suggesting that the issue may be on the client-side where the notification is received?

zwu52 commented 2 years ago

I am getting links in the payload thats originated from v1 send API. I am suspecting it might be a client issue even though I am not aware of any recent changes that might have caused the issue.

hiranya911 commented 2 years ago

I'm going to close this since this doesn't look like a problem with the Admin SDK or the underlying REST API. If the problem persists, please submit a report at https://firebase.google.com/support