AndroidNotification::VibrateTimingsMillis not operating as documented
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 30/3/2022.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
[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.
- 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 bình luận · 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 4 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 81 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 109 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ó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
flyingpie/windows-terminal-quake#419 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Show the per-model weekly limitĐang mởenhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
a-corriger documentation
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 83/100
christian-raj/S-Aloha#272 ·
-
Incorrect loop bound in SizeOptIListSelectIterator.ToListCó thể đã có người làm @equmagg đã nhận hôm nay. Đang mởarea-System.Collections untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
dotnet/runtime#137126 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug debugger flaky small
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày