Sad Tux - Windows bias detected
This page contains Windows bias

About This Page

This page is part of the Azure documentation. It contains code examples and configuration instructions for working with Azure services.

Bias Analysis

Detected Bias Types
windows_first
missing_linux_example
windows_tools
Summary
The documentation page demonstrates a Windows bias by providing only Windows/Windows Phone-specific notification examples (using Windows toast XML and SendWindowsNativeNotificationAsync), mentioning Windows platforms explicitly, and omitting equivalent Linux, Android, or cross-platform notification examples. The SDK usage is shown only for Windows notifications, and there are no Linux command-line, REST API, or cross-platform code samples.
Recommendations
  • Add equivalent examples for sending notifications to Android (using FCM) and iOS (using APNS) with the Notification Hubs SDK.
  • Include REST API examples for sending notifications, which are platform-agnostic and runnable from any OS, including Linux.
  • Provide Node.js or Python code samples that demonstrate sending notifications from non-Windows environments.
  • Rephrase sections that mention Windows platforms first or exclusively, ensuring cross-platform parity in both order and content.
  • Explicitly mention that the SDK and REST APIs can be used from Linux and macOS, not just Windows.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-14 00:00 #250 in_progress Clean Clean
2026-01-13 00:00 #246 completed Clean Clean
2026-01-11 00:00 #240 completed Clean Clean
2026-01-10 00:00 #237 completed Clean Clean
2026-01-09 00:34 #234 completed Clean Clean
2026-01-08 00:53 #231 completed Clean Clean
2026-01-06 18:15 #225 cancelled Clean Clean
2025-08-17 00:01 #83 cancelled Clean Clean
2025-07-13 21:37 #48 completed Biased Biased
2025-07-12 23:44 #41 cancelled Biased Biased

Flagged Code Snippets

Microsoft.Azure.NotificationHubs.NotificationOutcome outcome = null;

String userTag = "(location_Boston && !follows_Cardinals)";

// Windows 8.1 / Windows Phone 8.1
var toast = @"<toast><visual><binding template=""ToastText01""><text id=""1"">" +
"You want info on the Red Sox</text></binding></visual></toast>";
outcome = await Notifications.Instance.Hub.SendWindowsNativeNotificationAsync(toast, userTag);

// Windows 10
toast = @"<toast><visual><binding template=""ToastGeneric""><text id=""1"">" +
"You want info on the Red Sox</text></binding></visual></toast>";
outcome = await Notifications.Instance.Hub.SendWindowsNativeNotificationAsync(toast, userTag);