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
⚠️ windows_heavy_examples
Summary:
The documentation page demonstrates a bias toward Windows platforms by consistently presenting Windows/Windows Phone notification examples first and in greater detail. The initial 'Get started tutorial' link and most code samples focus on Windows (WNS, MPNS) payloads, with screenshots and explanations centered around Windows notification headers and outcomes. Linux or cross-platform command-line usage, tools, or deployment scenarios are not discussed, and there is no mention of Linux-specific considerations or parity in the workflow.
Recommendations:
  • Reorder examples to alternate or rotate the platform order, sometimes showing iOS or Android first.
  • Include explicit instructions or notes for running the Python code on Linux and macOS, such as environment setup, dependencies, and any OS-specific caveats.
  • Add screenshots or logs from non-Windows platforms to illustrate parity in debugging and outcomes.
  • Provide links to platform-agnostic or Linux/macOS-specific tutorials, not just Windows-centric ones.
  • Ensure that all references to 'Get started' or other tutorials are available for multiple platforms, not only Windows.
  • Mention any differences (or confirm the lack thereof) in using Notification Hubs from Linux-based servers or CI/CD pipelines.
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

wns_payload = """<toast><visual><binding template=\"ToastText01\"><text id=\"1\">Hello world!</text></binding></visual></toast>""" hub.send_windows_notification(wns_payload)
var template = @"<toast><visual><binding template=""ToastText01""><text id=""1"">$(greeting_en)</text></binding></visual></toast>";
class Notification: def __init__(self, notification_format=None, payload=None, debug=0): valid_formats = ['template', 'apple', 'gcm', 'windows', 'windowsphone', "adm", "baidu"] if not any(x in notification_format for x in valid_formats): raise Exception( "Invalid Notification format. " + "Must be one of the following - 'template', 'apple', 'gcm', 'windows', 'windowsphone', 'adm', 'baidu'") self.format = notification_format self.payload = payload # array with keynames for headers # Note: Some headers are mandatory: Windows: X-WNS-Type, WindowsPhone: X-NotificationType # Note: For Apple you can set Expiry with header: ServiceBusNotification-ApnsExpiry # in W3C DTF, YYYY-MM-DDThh:mmTZD (for example, 1997-07-16T19:20+01:00). self.headers = None
wns_payload = """<toast><visual><binding template=\"ToastText01\"><text id=\"1\">Test</text></binding></visual></toast>""" hub.send_windows_notification(wns_payload)
hub.send_windows_notification(wns_payload)