Skip to content

[iOS] Fix critical bug #4176

Open
RKBoss6 wants to merge 4 commits intoespruino:masterfrom
RKBoss6:iosBugFix
Open

[iOS] Fix critical bug #4176
RKBoss6 wants to merge 4 commits intoespruino:masterfrom
RKBoss6:iosBugFix

Conversation

@RKBoss6
Copy link
Contributor

@RKBoss6 RKBoss6 commented Feb 18, 2026

Fixes #4175, where the notifications would be received, but not displayed, due to null errors. Also fixes storage.write to be storage.writeJSON, which previously threw an error if no json file was found.

Copilot AI review requested due to automatic review settings February 18, 2026 16:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves the iOS Integration app’s reliability when handling incoming ANCS notifications and related data (e.g., location), addressing crashes caused by missing fields and incorrect storage writes (Fixes #4175).

Changes:

  • Bump iOS Integration app version to 0.25.
  • Fix location persistence by writing mylocation.json via Storage.writeJSON.
  • Prevent null/undefined errors during app name auto-detection by guarding msg.appId and adding a safer fallback.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
apps/ios/metadata.json Version bump to 0.25 for the iOS app release.
apps/ios/boot.js Fixes JSON persistence for location and hardens notification parsing against missing appId.
apps/ios/ChangeLog Adds a 0.25 entry describing stability improvements.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bobrippling
Copy link
Collaborator

Nice fix - tagged Gordon with this being a core app but LGTM

Updated comment to clarify fallback behavior for name assignment.
@gfwilliams
Copy link
Member

looks good to me

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.

[iOS Integration] Notification forwarding unreliable

4 participants