AndroidNotification::VibrateTimingsMillis not operating as documented
I maintainer di solito rispondono entro 1 giorno
@chong-shao ci sta già lavorando.
Dal 30/3/2022.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
[REQUIRED] Step 2: Describe your environment
- Operating System version: Windows 10 Enterprise
- Firebase SDK version: 2.3.0
- Firebase Product: Firebase Cloud Messaging
- .NET version: 6.0
- OS: Windows 0 Enterprise
[REQUIRED] Step 3: Describe the problem
The AndroidNotification::VibrateTimingMillis property is documented as follows:
Gets or sets a list of vibration timings in milliseconds in the array to use. The first value in the
array indicates the duration to wait before turning the vibrator on. The next value
indicates the duration to keep the vibrator on. Subsequent values alternate between
duration to turn the vibrator off and to turn the vibrator on.
Today I wanted to send a notification that would vibrate for 500 milliseconds, so I set this property as follows:
AndroidNotification notification = new
{
DefaultVibrateTimings = false,
VibrateTimingsMillis = new long[] { 0, 500 }
};
On the device though, this resulted in a very long vibration, that lasted for several seconds.
After experimenting, sending a value of { 0, 1 } results in a vibration lasting 1 second - I've reviewed the relevant code for this (in VibrateTimingsString) and tested it on its own, and the above code results in the value 0s, 0.500000000s being sent to the API, which appears correct.
I'm not sure if this is a fault on the device I was testing against as it is running a very dated version of Android unfortunately (we're stuck with it due to customer requirements and it's stuck on Android 7.1.1).
PS: I also noticed a few possible micro-optimisations that could be made to some of this new code, such as pre-sizing the list for the timingsStringList, I'm not sure if it's worth opening a PR for these changes.
- 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 Una pull request collegata a questa issue è aperta o già unita. 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 77 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 105 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
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
microsoft/microsoft-ui-xaml#12515 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 2 giorni
-
[v5-preview5] `func new` displays incorrect command in error message when project is not initializedApertaNeeds: Triage (Functions) v5 v5-preview5
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
Azure/azure-functions-core-tools#5838 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
customer-reported needs-team-triage question server-Azure.Mcp tools-Pricing
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
microsoft/mcp#4087 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Enable "remote"' featureAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100