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

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 ID Status Bias Status
2025-08-17 00:01 #83 in_progress ✅ Clean
2025-07-13 21:37 #48 completed ❌ Biased
2025-07-12 23:44 #41 in_progress ❌ 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);