flyverify_plugin 1.0.4 copy "flyverify_plugin: ^1.0.4" to clipboard
flyverify_plugin: ^1.0.4 copied to clipboard

The operator gateway takes the number and verifies the mobile phone number in one second.

Flyverify For Flutter #

运营商网关取号,一秒验证手机号 #

支持的原生SDK版本

简介: http://www.mob.com/product/Flyverify

插件主页: https://pub.dartlang.org/packages/Flyverify_plugin

官网文档: https://www.mob.com/wiki/detailed?wiki=miaoyan_chanpinjianjie&id=78

1.Flutter集成文档 Flyverify-For-Flutter 在线文档 2.iOS平台配置参考 iOS集成文档

  • 实现 "一、注册应用获取appKey 和 appSecret"
  • 实现 "三、配置appkey和appSecret"

3.Android平台集成

#####导入SMSSDK相关依赖

  1. 在项目根目录的build.gradle中添加以下代码:
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'

    }
  1. 在/android/app/build.gradle中添加以下代码:
apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

  1. 在根路径下的pubspec.yaml文件中添加Flyverify flutter插件:
dependencies:
  Flyverify_plugin:^1.0.4

在你项目的Dart中添加以下代码:

 import 'package:Flyverify_plugin/Flyverify.dart'

这样,就可以使用plugin中定义的dart api了。

  1. 平台相关集成 在项目的/android/app/build.gradle中添加:
android {
    // lines skipped
    dependencies {
        provided rootProject.findProject(":zztflyverify")
    }
}

这样就可以在你的project/android/src下的类中import com.mob.flutter.Flyverify.FlyverifyPlugin并使用FlyverifyPlugin中的api了。

######添加代码

  1. 在MainActivity的onCreate中添加以下代码:
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    GeneratedPluginRegistrant.registerWith(this);
    // 注册Flyverify Flutter插件
    FlyverifyPlugin.registerWith(registrarFor(FlyverifyPlugin.CHANNEL));
    // 初始化Flyverify
    FlyverifyPlugin.init(this, APPKEY, APPSECRET);
  }

技术支持 #

如有问题请联系技术支持:

服务电话:   400-685-2216
QQ:        4006852216
节假日值班电话:
    iOS:185-1664-1951
Android: 185-1664-1950
电子邮箱:   [email protected]
市场合作:   021-54623100
0
likes
95
points
390
downloads

Publisher

verified publishermob.com

Weekly Downloads

The operator gateway takes the number and verifies the mobile phone number in one second.

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

collection, flutter, json_annotation

More

Packages that depend on flyverify_plugin

Packages that implement flyverify_plugin