Skip to content

Fix DCS and SPI events never reaching Flutter listeners - #158

Merged
nicolas-chaix-didomi merged 3 commits into
mainfrom
fix/event-name-mismatches
Aug 5, 2026
Merged

Fix DCS and SPI events never reaching Flutter listeners#158
nicolas-chaix-didomi merged 3 commits into
mainfrom
fix/event-name-mismatches

Conversation

@nicolas-chaix-didomi

Copy link
Copy Markdown
Contributor

Two long-standing wire-string mismatches meant these events were silently dropped in the default branch of the events handler:

  • DCS: both native platforms send "onDCSSignatureReady"/"onDCSSignatureError" (the iOS SDK's own listener properties are named that way), but the Dart handler matched "onDcsSignature*". Aligned the two case strings with native. The public EventListener field names are unchanged to avoid a breaking API change.

  • SPI: the Dart handler had no case arm for any of the 7 SPI events even though EventListener declares them all. Added the missing arms. Android also sent 4 of them without the "on" prefix, unlike iOS; aligned those on the "on..." form.

Also wire onDcsSignatureReady/onDcsSignatureError and onIntegrationError into the example app so the DCS fix is observable in the event log.

Two long-standing wire-string mismatches meant these events were
silently dropped in the default branch of the events handler:

- DCS: both native platforms send "onDCSSignatureReady"/"onDCSSignatureError"
  (the iOS SDK's own listener properties are named that way), but the Dart
  handler matched "onDcsSignature*". Aligned the two case strings with
  native. The public EventListener field names are unchanged to avoid a
  breaking API change.

- SPI: the Dart handler had no case arm for any of the 7 SPI events even
  though EventListener declares them all. Added the missing arms. Android
  also sent 4 of them without the "on" prefix, unlike iOS; aligned those
  on the "on..." form.

Also wire onDcsSignatureReady/onDcsSignatureError and onIntegrationError
into the example app so the DCS fix is observable in the event log.
Comment thread CHANGELOG.md Outdated
@nicolas-chaix-didomi
nicolas-chaix-didomi merged commit 675389c into main Aug 5, 2026
13 of 16 checks passed
@nicolas-chaix-didomi
nicolas-chaix-didomi deleted the fix/event-name-mismatches branch August 5, 2026 07:39
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.

2 participants