Open keerthiduvvuri opened 3 weeks ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Can repro this issue at Android platform on the latest 17.6.12(build 410)(8.0.21&8.0.40).
@RoiChen001 sorry i have changed back to IOS, the bug is in IOS platform.
GithubTags:#Rev:yaja;
I have verified this behaves as stated above.
I wonder if the issue is the timing with the await Shell.Current.GoToAsync("..");
right after the SemanticScreenReader.Announce(RecipeName + " recipe added.");
call.
If I remove the GoToAsync call, the full announcement is made.
Not sure how manageable this would be, but perhaps adding an async Announce method could be worth trying here:
namespace Microsoft.Maui.Essentials
{
public static partial class SemanticScreenReader
{
public static async Task Announce(string text)
{
if (!UIAccessibility.IsVoiceOverRunning)
return;
var tcs = new TaskCompletionSource<bool>();
MainThread.BeginInvokeOnMainThread(async () =>
{
await Task.Delay(100);
UIAccessibility.PostNotification(UIAccessibilityPostNotification.Announcement, new NSString(text));
// Adding some way of knowing/guessing when the Notification is finished reading?
tcs.SetResult(true);
});
await tcs.Task;
}
}
}
Worth noting that there were timing issues with iOS Screenreader here: https://github.com/dotnet/maui/issues/3736
There is also an interesting workaround here: https://stackoverflow.com/a/59329208
Perhaps a little tricky but has potential!
GIT Hub Tags:
AI Limited; #A11yTCS; #A11ySev2; #.NET Core; #E2E-.NET Core-IOS-MAUI-JUNE2024; #Voiceover; #IOS; #WCAG1.3.1; #Info and Relationship; #FTP; #A11yMAS; #ScreenReader; #Elemet: Screenreader;
Environment and OS details:
IOS Version 17
Reproduction Steps
Actual behavior:
Voiceover is not announced "item added or updated" when user is adding or editing a new Recipe or existing Recipe.
Expected behavior
Voiceover should be announced "item added or updated" when user is adding or editing a new Recipe or existing Recipe.
User Impact:
Screen reader users will face difficulty if Voiceover is not announced "item added or updated" when user is adding or editing a new Recipe or existing Recipe.
Attachments:
https://github.com/dotnet/maui/assets/98728920/6281b667-3e49-4afe-b736-b2dcf7087716
https://github.com/dotnet/maui/assets/98728920/11a89429-4e98-4980-92e1-d4be256038fc