secverify 1.30.7 copy "secverify: ^1.30.7" to clipboard
secverify: ^1.30.7 copied to clipboard

discontinuedreplaced by: secverify_plugin
PlatformAndroidiOS

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

SecVerify For Flutter #

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

支持的原生SDK版本

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

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

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

1.Flutter集成文档 SecVerify-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'
        classpath 'com.mob.sdk:MobSDK:+'
    }
  1. 在/android/app/build.gradle中添加以下代码:
apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
// 导入MobSDK
apply plugin: 'com.mob.sdk'
MobSDK {
   appKey "替换为mob官方申请的appkey"
   appSecret "替换为mob官方申请的appkey对应的appSecret"
   SecVerify {}
}
  1. 在根路径下的pubspec.yaml文件中添加smssdk flutter插件:
dependencies:
  secverify:^1.0.2

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

 import 'package:secverify/secverify.dart'

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

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

这样就可以在你的project/android/src下的类中import cn.mob.secverifyplugin并使用SecverifyPlugin中的api了。

######添加代码

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

技术支持 #

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

服务电话:   400-685-2216
QQ:        4006852216
节假日值班电话:
    iOS:185-1664-1951
Android: 185-1664-1950
电子邮箱:   support@mob.com
市场合作:   021-54623100
2
likes
95
pub points
0%
popularity

Publisher

unverified uploader

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 secverify