Execute "onMessageReceived" on background
I maintainer di solito rispondono entro 1 giorno
@chong-shao ci sta già lavorando.
Dal 17/5/2022.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
[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 ?
- Lingua principale
- C#
- Stelle
- 408
- Fork
- 147
- Merge medio
- 1g 3h
- PR unite (30g)
- 10
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di firebase/firebase-admin-dotnet
-
AbstractFirebaseAuth.cs has a typo (accound/account)Forse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertaneeds-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
firebase/firebase-admin-dotnet#334 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
GetProjectId returns null on Compute Engine / Cloud Run with application default credentialsForse già presa @lahirumaramba l’ha presa 1 giorno fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
firebase/firebase-admin-dotnet#588 ·
I maintainer di solito rispondono entro 1 giorno
-
Sending FCM notification with Fids Return NotRegisteredForse di nuovo libera @yvonnep165 l’ha presa 78 giorni fa e non c’è nessuna pull request aperta. Aperta
firebase/firebase-admin-dotnet#534 · 5 commenti · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Sending MulticastMessage does not work after replacing Tokens with FidsForse di nuovo libera @Doris-Ge l’ha presa 106 giorni fa e non c’è nessuna pull request aperta. Apertaapi: messaging
firebase/firebase-admin-dotnet#530 · 2 commenti · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
firebase/firebase-admin-dotnet#526 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di firebase/firebase-admin-dotnet
Issue simili
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
QuantConnect/Documentation#2838 ·
I maintainer di solito rispondono entro 1 giorno
-
"Create your app": .sln/.slnx step and Solution Explorer instructions don't match current C# Dev KitApertaarea-tutorials needs-triage
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
dotnet/website-feedback#1844 ·
-
Needs: Attention :wave: v5 v5-preview5
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Azure/azure-functions-core-tools#5852 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
OrchardCMS/OrchardCore#20194 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
Gothic-Unity-Project/Gothic-Unity#487 ·
I maintainer di solito rispondono entro 1 giorno