Execute "onMessageReceived" on background
Maintainer thường phản hồi trong vòng 1 ngày
@chong-shao đang làm issue này rồi.
Từ ngày 17/5/2022.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
[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 ?
- Ngôn ngữ chính
- C#
- Star
- 407
- Fork
- 147
- Merge trung bình
- 2 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của firebase/firebase-admin-dotnet
-
AbstractFirebaseAuth.cs has a typo (accound/account)Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởneeds-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
firebase/firebase-admin-dotnet#334 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
firebase/firebase-admin-dotnet#591 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
GetProjectId returns null on Compute Engine / Cloud Run with application default credentialsCó thể đã có người làm @lahirumaramba đã nhận 3 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 78/100
firebase/firebase-admin-dotnet#588 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Sending FCM notification with Fids Return NotRegisteredCó thể làm lại được @yvonnep165 đã nhận 80 ngày trước và không có pull request nào đang mở. Đang mở
firebase/firebase-admin-dotnet#534 · 5 bình luận · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Sending MulticastMessage does not work after replacing Tokens with FidsCó thể làm lại được @Doris-Ge đã nhận 108 ngày trước và không có pull request nào đang mở. Đang mởapi: messaging
firebase/firebase-admin-dotnet#530 · 2 bình luận · 2 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của firebase/firebase-admin-dotnet
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
Unity-Technologies/unity-agent-plugin#118 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
The Recommended preset turns on Import Uno DSP, which only works with the Material themeCó thể đã có người làm @agneszitte đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
unoplatform/uno.templates#2388 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
eyalgolan/statecraft-israel#2732 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
変換の候補のどれが Zenzai の答えか分からないĐang mở要トリアージ
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/chore status/draft
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Altinn/altinn-events#1158 ·
Maintainer thường phản hồi trong vòng 1 ngày