fix(ios): resolve clipboard and notification issues in ContactQRScanFullView #199

Merged
jose merged 2 commits from ios-qr-code-copy into master 2025-09-16 08:15:12 +00:00
Owner

fix(ios): resolve clipboard and notification issues in ContactQRScanFullView

  • Replace useClipboard() with ClipboardService for iOS compatibility
  • Fix notification helper initialization timing issue
  • Add proper error handling for clipboard operations
  • Ensure consistent behavior across all platforms

Fixes clipboard copy functionality on iOS builds where QR code clicks
failed to copy content and showed notification errors. The ClipboardService
provides platform-specific handling using Capacitor's clipboard plugin,
while moving notification initialization to created() lifecycle hook
prevents undefined function errors.

Resolves: iOS clipboard copy failure and notification system errors

fix(ios): resolve clipboard and notification issues in ContactQRScanFullView - Replace useClipboard() with ClipboardService for iOS compatibility - Fix notification helper initialization timing issue - Add proper error handling for clipboard operations - Ensure consistent behavior across all platforms Fixes clipboard copy functionality on iOS builds where QR code clicks failed to copy content and showed notification errors. The ClipboardService provides platform-specific handling using Capacitor's clipboard plugin, while moving notification initialization to created() lifecycle hook prevents undefined function errors. Resolves: iOS clipboard copy failure and notification system errors
jose added 1 commit 2025-09-10 13:07:09 +00:00
- Replace useClipboard() with ClipboardService for iOS compatibility
- Fix notification helper initialization timing issue
- Add proper error handling for clipboard operations
- Ensure consistent behavior across all platforms

Fixes clipboard copy functionality on iOS builds where QR code clicks
failed to copy content and showed notification errors. The ClipboardService
provides platform-specific handling using Capacitor's clipboard plugin,
while moving notification initialization to created() lifecycle hook
prevents undefined function errors.

Resolves: iOS clipboard copy failure and notification system errors
jose added 1 commit 2025-09-12 08:16:11 +00:00
- Replace useClipboard with platform-agnostic ClipboardService across 13 files
- Add proper error handling with user notifications for all clipboard operations
- Fix naming conflicts between method names and imported function names
- Ensure consistent async/await patterns throughout the codebase
- Add notification system to HelpView.vue for user feedback on clipboard errors
- Remove unnecessary wrapper methods for cleaner code

Files migrated:
- View components: UserProfileView, QuickActionBvcEndView, ProjectViewView,
  InviteOneView, SeedBackupView, HelpView, AccountViewView, DatabaseMigration,
  ConfirmGiftView, ClaimView, OnboardMeetingSetupView
- Utility functions: libs/util.ts (doCopyTwoSecRedo)
- Components: HiddenDidDialog

Naming conflicts resolved:
- DatabaseMigration: copyToClipboard() → copyExportedDataToClipboard()
- ShareMyContactInfoView: copyToClipboard() → copyContactMessageToClipboard() → removed
- HiddenDidDialog: copyToClipboard() → copyTextToClipboard()
- ClaimView: copyToClipboard() → copyTextToClipboard()
- ConfirmGiftView: copyToClipboard() → copyTextToClipboard()

This migration ensures reliable clipboard functionality across iOS, Android,
and web platforms with proper error handling and user feedback.

Closes: Platform-specific clipboard issues on mobile devices
jose merged commit 0072db1595 into master 2025-09-16 08:15:12 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: trent_larson/crowd-funder-for-time-pwa#199