Skip to content

fix(ios): handle unsupported campaign types gracefully instead of crashing#326

Open
haashem wants to merge 1 commit into
thekorn:mainfrom
haashem:main
Open

fix(ios): handle unsupported campaign types gracefully instead of crashing#326
haashem wants to merge 1 commit into
thekorn:mainfrom
haashem:main

Conversation

@haashem
Copy link
Copy Markdown

@haashem haashem commented Apr 4, 2026

Description

Prevents a crash on iOS when the Sourcepoint SDK returns an unrecognized campaign type by replacing force-try (try!) calls with safe alternatives and introducing an unknown fallback.

Resolves #259 when user taps on the cancel button, which causes the app to crash on iOS.

Screenshot 2026-04-04 at 00 00 26

Resolves

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • [ x] 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

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.

fix: iOS app crashes when user cancels privacy consent modal

1 participant