AndroidNotification::VibrateTimingsMillis not operating as documented
Los mantenedores suelen responder en 1 día
@chong-shao ya está trabajando en esto.
Desde el 30/3/2022.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
[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.
- Lenguaje dominante
- C#
- Estrellas
- 408
- Forks
- 147
- Merge medio
- 1 d 3 h
- PR fusionados (30 d)
- 10
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de firebase/firebase-admin-dotnet
-
AbstractFirebaseAuth.cs has a typo (accound/account)Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertoneeds-triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
firebase/firebase-admin-dotnet#334 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
GetProjectId returns null on Compute Engine / Cloud Run with application default credentialsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 78/100
firebase/firebase-admin-dotnet#588 ·
Los mantenedores suelen responder en 1 día
-
Sending FCM notification with Fids Return NotRegisteredQuizá libre de nuevo @yvonnep165 la tomó hace 77 días y no hay ningún pull request abierto. Abierto
firebase/firebase-admin-dotnet#534 · 5 comentarios · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Sending MulticastMessage does not work after replacing Tokens with FidsQuizá libre de nuevo @Doris-Ge la tomó hace 105 días y no hay ningún pull request abierto. Abiertoapi: messaging
firebase/firebase-admin-dotnet#530 · 2 comentarios · 2 asignados ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
firebase/firebase-admin-dotnet#526 ·
Los mantenedores suelen responder en 1 día
Todos los issues de firebase/firebase-admin-dotnet
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
RadicalCSG/com.chisel#192 ·
Los mantenedores suelen responder en 1 día
-
area-testing p2-post-1.0 technical-debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
RazorConsole/RazorConsole#447 ·
Los mantenedores suelen responder en 1 día
-
CloudEventsMiddleware decodes JSON string data for `+json` content typesPosiblemente ocupada @RaphaelFakhri la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
dapr/dotnet-sdk#1964 ·
Los mantenedores suelen responder en 1 día
-
bug P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día