Skip to content

Add broadcast channel shim to fix iOS <15.4 crash#902

Closed
microbit-grace wants to merge 1 commit into
mainfrom
noop-broadcast-channel
Closed

Add broadcast channel shim to fix iOS <15.4 crash#902
microbit-grace wants to merge 1 commit into
mainfrom
noop-broadcast-channel

Conversation

@microbit-grace
Copy link
Copy Markdown

@microbit-grace microbit-grace commented May 22, 2026

The app crashes for iOS versions earlier than 15.4 because BroadcastChannel is not supported in those versions. A no-op version is implemented and used for those instances to avoid the crash.

BroadcastChannel is used to sync project state between web tabs/windows. It doesn’t matter if it doesn’t work for native apps. However, this may be an issue for web users that use Safari versions earlier than 15.4. This can be revisited later on.

@github-actions
Copy link
Copy Markdown

Preview build will be at
https://review-createai.microbit.org/noop-broadcast-channel/

@microbit-grace microbit-grace marked this pull request as ready for review May 22, 2026 16:16
@microbit-grace
Copy link
Copy Markdown
Author

Tested

  • Tested on simulator 15.2 - app launches successfully as expected (instead of crashing).
  • Tested syncing of changes with multiple tabs opened on web (one tab change project name, another tab on homepage seeing project name change).
  • Tested connect, test model, and download MakeCode program locally on iPad and Android.

@microbit-grace microbit-grace removed the request for review from microbit-robert May 26, 2026 08:06
@microbit-grace microbit-grace marked this pull request as draft May 26, 2026 08:06
@microbit-grace
Copy link
Copy Markdown
Author

Superseded by #903

@microbit-grace microbit-grace deleted the noop-broadcast-channel branch May 27, 2026 12:23
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