flutter_ddshare 0.0.1+1

Flutter Android iOS

A DDShare(钉钉) flutter plugin project.

flutter_ddshare #

钉钉 Flutter 插件,支持IOS,Android 端授权

配置 #

ios端 #

  1. 在Other Linker Flags添加 -all_load 选项;

  1. 将申请的appId添加到URL Types中作为钉钉回调的scheme, identifier 填写dingtalk; URL Schemes填写申请的AppId。 iOS9及以后的系统需要将钉钉和分享SDK的scheme配置在Info.plist。LSApplicationQueriesSchemes列表中,scheme分别为 dingtalk, dingtalk-open

Android端 #

暂不需要配置

参考钉钉官方文档 #

钉钉官方文档

使用 #

//注册钉钉插件
FlutterDdshare.registerApp('Your AppId', 'Your IOS BundleId')

//钉钉是否安装
FlutterDdshare.isDDAppInstalled()

// 回调
FlutterDdshare.ddResponseEventHandler.listen((resp) async {
  //授权回调信息
  if (resp is DDShareAuthResponse) {
    print('授权回调信息=====> code: ${resp.code}  state:${resp.state}');
  }
});

0
likes
65
pub points
0%
popularity

A DDShare(钉钉) flutter plugin project.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

yangjian0w0@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_ddshare