Skip to main content

crossmint_webview_frames 0.1.0 copy "crossmint_webview_frames: ^0.1.0" to clipboard
crossmint_webview_frames: ^0.1.0 copied to clipboard

Native plugin for the Crossmint Flutter SDK that reports which WebView frame posted each hosted-page message.

crossmint_webview_frames #

Native plugin for the Crossmint Flutter SDK. It tells the SDK which WebView frame posted each message of a hosted Crossmint page.

Most apps do not use this package directly. Add crossmint_flutter to your app, and it uses this package.

What it does #

A hosted Crossmint page posts messages to the SDK. The page can contain frames from other sites, such as card fields or a bank page. The WebView plugins do not tell Dart which frame posted a message.

This plugin limits which frames can post, and tells Dart who posted:

  • On Android, only frames on a Crossmint HTTPS host get the message channel.
  • On iOS, only the main frame gets the message channel.
  • The text of a message reaches Dart only from the main frame on a Crossmint host. For any other frame, Dart gets the origin and no text.

The SDK checks the frame again in Dart and ignores messages from other frames.

On Android, the plugin also sends each camera request to Dart with the origin of the frame that asked. The SDK gives the camera only to Crossmint and to its identity provider.

Platform support #

  • iOS 15 or later.
  • Android with a WebView that supports WEB_MESSAGE_LISTENER. On an older WebView, the SDK cannot tell frames apart and accepts messages from every frame.
  • The camera check uses classes of webview_flutter_android that are not part of its public API. If a WebView does not support it, the SDK denies every camera request.
0
likes
150
points
85
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Native plugin for the Crossmint Flutter SDK that reports which WebView frame posted each hosted-page message.

Homepage
Repository (GitHub)
View/report issues

Topics

#crossmint #security

License

Apache-2.0 (license)

Dependencies

flutter, webview_flutter, webview_flutter_android, webview_flutter_wkwebview

More

Packages that depend on crossmint_webview_frames

Packages that implement crossmint_webview_frames