bridge_flutter_sdk 2.1.0
bridge_flutter_sdk: ^2.1.0 copied to clipboard
bridge-flutter-sdk — ViewTrade Bridge Flutter SDK (token launch → WebView shell).
Changelog #
2.1.0 #
Mobile App Integration (Bridge SDK UAT guide):
- Switch WebView to
flutter_inappwebview(popups /onCreateWindow). returnUrlmust be a custom scheme (e.g.myapp://sdk-return);onReturnreceivesBridgeReturnwithreason.- Camera/mic permission flow via
permission_handler. - Funding popup WebView, back-stack handling,
; wvUA strip, third-party cookies. - User-tapped links open in a closable overlay; document links view in-overlay.
- iOS
onNavigationResponse: show MIME WK can render (PDF); download the rest. mailto:/tel:open the default system apps (LaunchMode.externalApplication).- Document downloads: blob / zip /
downloadattr +onDownloadStartRequest; MethodChannelbridge_flutter_sdk/downloads. - Download permissions (Android storage/notifications; iOS Documents + Files sharing).
- Hide WebView scrollbars (native + CSS).
- Expiry fields required on launch payload.
2.0.0 #
Breaking rewrite around Bridge web SDK launch:
BridgeSdktakes host tokens,clientName,returnUrl, andenvironment.- On mount, SDK
POSTs/launchand loadslaunchUrlin a WebView. - Removed firmId/theme/config injection, RN message shim, GlomoPay, etc.