transfi_connect 0.0.3 copy "transfi_connect: ^0.0.3" to clipboard
transfi_connect: ^0.0.3 copied to clipboard

PlatformAndroidiOS
outdated

A Flutter plugin to connect your application with transfi.

Flutter Transfi WebView Plugin #

Plugin that allows Flutter to communicate with a native WebView.

Getting Started #

For help getting started with Flutter, view our online documentation.

iOS

In order for plugin to work correctly, you need to add new key to ios/Runner/Info.plist

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSAllowsArbitraryLoadsInWebContent</key>
    <true/>
</dict>

NSAllowsArbitraryLoadsInWebContent is for iOS 10+ and NSAllowsArbitraryLoads for iOS 9.

How it works #

Launch WebView with Flutter

String status;
const String url = "https://dev-buy.transfi.com/";
const String apiKey = "0";
status = await _transfiConnectPlugin.openWebView(url,apiKey);
switch(status){
    case "success":
    //handle success
    break;
    case "error":
    //handle error
    break;
    default:
    //handle error
    break;
}
0
likes
100
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to connect your application with transfi.

Documentation

API reference

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on transfi_connect

Packages that implement transfi_connect