Execute "onMessageReceived" on background
メンテナーはふだん 1 日以内に返信
@chong-shao がすでに取り組んでいます。
2022年5月17日 から。
評価
この issue はまだ評価されていません。
説明
[READ] Step 1: Are you in the right place?
- I like to send a "data message" throw this nuget (no notification), so the "onMessageReceived" method was call on android in even in background.
- Actually, I use HTTP legacy URI : https://fcm.googleapis.com/fcm/send and I'm able to send "data message" and "notification message"
- I try to use "HTTP v1" instead, but I can't send "data message", I always receive a "notification message"
[REQUIRED] Step 2: Describe your environment
- Operating System version: ubuntu 22.04
- Firebase SDK version: 2.3.0
- Firebase Product: messaging
- .NET version: net6.0
- OS: linux
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
Send a message with :
var message = new Message()
{
Token = myToken,
Notification = new Notification
{
Body = notification.Message.GetLanguage(device.DeviceLanguage),
Title = notification.Title.GetLanguage(device.DeviceLanguage),
},
Android = new AndroidConfig
{
TimeToLive = TimeSpan.FromHours(1),
Priority = Priority.High,
Notification = new AndroidNotification
{
ChannelId = GetAndroidChannelId("alertChannel", soundName)
}
},
Data = new Dictionary<string, string>() { }
};
var fcmResponse = await FirebaseMessaging.DefaultInstance.SendAsync(message);
I receive a "notification message" :)
var message = new Message()
{
Token = myToken,
Android = new AndroidConfig
{
TimeToLive = TimeSpan.FromHours(1),
Priority = Priority.High,
Notification = new AndroidNotification
{
ChannelId = GetAndroidChannelId("alertChannel", soundName)
}
},
Data = new Dictionary<string, string>() { }
};
var fcmResponse = await FirebaseMessaging.DefaultInstance.SendAsync(message);
I receive a "notification message" not a "data message" :(
I aslo try to force the Notification property as null. But I had the same result
var message = new Message()
{
Token = myToken,
Notification = null,
...
There is something I can do ?
- 主要言語
- C#
- スター
- 407
- フォーク
- 147
- 平均マージ
- 2日 10時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
firebase/firebase-admin-dotnet のほかの issue
-
AbstractFirebaseAuth.cs has a typo (accound/account)再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンneeds-triage
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
firebase/firebase-admin-dotnet#334 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
firebase/firebase-admin-dotnet#591 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
GetProjectId returns null on Compute Engine / Cloud Run with application default credentials対応中かも @lahirumaramba が 3 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
firebase/firebase-admin-dotnet#588 ·
メンテナーはふだん 1 日以内に返信
-
Sending FCM notification with Fids Return NotRegistered再び着手できるかも @yvonnep165 が 80 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
firebase/firebase-admin-dotnet#534 · コメント 5 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Sending MulticastMessage does not work after replacing Tokens with Fids再び着手できるかも @Doris-Ge が 108 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンapi: messaging
firebase/firebase-admin-dotnet#530 · コメント 2 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
firebase/firebase-admin-dotnet の issue をすべて見る
似ている issue
-
needs attention untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet#3666 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
stryker-mutator/stryker-net#3974 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
JiaFeiMiao-K-Cat/DiscImageStudio#171 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
DDOS VulnerbilityオープンS: Untriaged
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
DeltaV-Station/Delta-v#6711 ·
メンテナーはふだん 1 日以内に返信