Skip to content

fix(app) fix PlatformException crash when exporting device diagnostics#8057

Open
krushnarout wants to merge 1 commit into
mainfrom
fix/share-plus-missing-title-crash
Open

fix(app) fix PlatformException crash when exporting device diagnostics#8057
krushnarout wants to merge 1 commit into
mainfrom
fix/share-plus-missing-title-crash

Conversation

@krushnarout

@krushnarout krushnarout commented Jun 20, 2026

Copy link
Copy Markdown
Member

Summary

  • ShareParams in _exportDiagnostics was missing a title, causing share_plus to throw PlatformException(error, Non-empty title expected, null, null) on iOS every time a user tapped the export button on the Device Diagnostics screen.
  • Fix: pass title: 'Omi Device Diagnostics' alongside the existing subject.

Crash

Fatal Exception: FlutterError
PlatformException(error, Non-empty title expected, null, null)
package:share_plus_platform_interface/method_channel/method_channel_share.dart:25

0  StandardMethodCodec.decodeEnvelope  (message_codecs.dart:653)
1  MethodChannel._invokeMethod          (platform_channel.dart:367)
2  MethodChannelShare.share             (method_channel_share.dart:25)
3  _DeviceDiagnosticsState._exportDiagnostics (device_diagnostics.dart:123)

Crashlytics: https://console.firebase.google.com/u/0/project/based-hardware/crashlytics/app/ios:com.friend-app-with-wearable.ios12/issues/40d960fea757d7ea8a9d0c02bec36346

Test plan

  • Open Device Diagnostics page and tap the export (share) button — verify the native share sheet opens without crashing

🤖 Generated with Claude Code

Review in cubic

ShareParams was missing a title, causing share_plus to throw
Non-empty title expected on iOS

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 1 file

Re-trigger cubic

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