Skip to content

Blog: WiFi, Bonjour, USB, and network-type listeners#5076

Closed
shai-almog wants to merge 1 commit into
masterfrom
blog-wifi-and-connectivity-apis
Closed

Blog: WiFi, Bonjour, USB, and network-type listeners#5076
shai-almog wants to merge 1 commit into
masterfrom
blog-wifi-and-connectivity-apis

Conversation

@shai-almog
Copy link
Copy Markdown
Collaborator

Summary

  • May 31 follow-up post in the new weekly release series, covering the connectivity APIs that shipped in PR Add deeper network connectivity: WiFi info/scan/connect, Bonjour, WiFi Direct, USB, network-type events #5021: com.codename1.io.wifi, com.codename1.io.bonjour, com.codename1.io.usb, and the new NetworkManager.addNetworkTypeListener / NETWORK_TYPE_* constants.
  • Walks through the API shape, the per-platform implementation choices (Android WifiManager / WifiNetworkSpecifier / NsdManager, iOS CNCopyCurrentNetworkInfo / NEHotspotConfigurationManager / NSNetServiceBrowser, JavaSE best-effort fallbacks), and the auto-injection of Android permissions and iOS entitlements based on classpath scanning.
  • Calls out the three new compile-time defines (CN1_INCLUDE_WIFI_INFO, CN1_INCLUDE_HOTSPOT, CN1_INCLUDE_BONJOUR) that keep unused entitlements out of Apple's API-usage scan.

File

  • docs/website/content/blog/wifi-bonjour-usb-network-type.md — single new file.

Sequencing

Branches off master; intended to publish after the on-device debugging post (#5075) and before the OIDC/passkey post. Front matter date is 2026-05-31.

Test plan

  • Hugo build of docs/website succeeds.
  • Post renders correctly on the blog index and as a standalone page.
  • Header image is generated at /static/blog/wifi-bonjour-usb-network-type.jpg.

Covers the new com.codename1.io.{wifi,bonjour,usb} packages and
NetworkManager.addNetworkTypeListener from PR #5021. Highlights the
per-platform implementations, the build-tool auto-injection of
Android permissions and iOS entitlements, the three new compile-time
defines that keep unused entitlements out of Apple's API-usage scan,
and the simulator behaviour for each surface.

Paired with the May 29 weekly release post and the on-device
debugging follow-up.
@shai-almog
Copy link
Copy Markdown
Collaborator Author

Superseded — consolidating the follow-up posts so this release week ships fewer, broader posts. New merged versions in the follow-up PRs to this one.

@shai-almog shai-almog closed this May 29, 2026
@shai-almog shai-almog deleted the blog-wifi-and-connectivity-apis branch May 29, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant