
Some checks failed
CI - 4NK Node / Integration Tests (push) Failing after 9s
CI - 4NK Node / Docker Build & Test (push) Failing after 8s
CI - 4NK Node / Documentation Tests (push) Failing after 3s
CI - 4NK Node / Release Guard (push) Has been skipped
CI - 4NK Node / Performance Tests (push) Failing after 29s
CI - 4NK Node / Code Quality (push) Failing after 32s
CI - 4NK Node / Unit Tests (push) Failing after 30s
CI - 4NK Node / Security Tests (push) Failing after 28s
CI - 4NK Node / Notify (push) Failing after 1s
804 B
804 B
Intégration WebView ↔ ihm_client
Principes
ihm_client
parle viawindow.postMessage
(cf.ihm_client/docs/INTEGRATION_IFRAME.md
)- En mobile, on charge
ihm_client
dans une WebView - On redirige
window.postMessage
versReactNativeWebView.postMessage
- Canal entrant: RN appelle
window.__RN_RECEIVE__(jsonString)
pour simuler unMessageEvent
Messages pris en charge (extraits)
- REQUEST_LINK → LINK_ACCEPTED|ERROR
- VALIDATE_TOKEN → VALIDATE_TOKEN
- RENEW_TOKEN → RENEW_TOKEN
Mapping côté RN
- Sortant: RN →
__RN_RECEIVE__(jsonString)
(déclenche unmessage
côté page) - Entrant: page →
postMessage(any)
redirigé vers RNonMessage
Sécurité
ihm_client
valide l’origine et les tokens- RN ne manipule pas directement les tokens côté page