cloudwise_flutter_plugin 2.2.0 copy "cloudwise_flutter_plugin: ^2.2.0" to clipboard
cloudwise_flutter_plugin: ^2.2.0 copied to clipboard

This is the official flutter plugin for Cloudwise,with this plugin you can easily collect your app data on Android and iOS.

cloudwise_flutter_plugin #

cloudwise_flutter_plugin 为您的Flutter工程提供了一个自动数据采集方式,并结合透视宝SDK对数据进行分析

版本要求 #

  • Dart Version: >= 2.4.0
  • Flutter Version >= 1.12.0
  • Gradle: >= 5.x
  • Supported WebRequest Framework: Dart HttpClient

安装步骤(本地安装) #

1、将cloudwise_flutter_plugin.zip解压缩 2、将解压缩后的文件夹plugin复制到工程主目录下 3、在主工程pubspec.yaml配置文件夹下的dependencies下,添加: cloudwise_flutter_plugin: path: plugin/cloudwise_flutter_plugin 4、运行 flutter pub get 加载插件 5、进入 工程目录/ios/ 下,执行pod install命令

使用 #

1、引用 import 'package:cloudwise_flutter_plugin/cloudwise_flutter_plugin.dart'; 2、在工程入口的 main方法中替换 runApp(MyApp()) 方法为:CloudwiseImpl().start(MyApp(), configuration: configuration) 其中configuration为:透视宝SDK的配置参数,由透视宝后台获取,configuration声明方式如下: var configuration = Configuration( isDebug: boolean, //是否开启Debug开关,true仅为测试使用,生产上强烈建议设置为false datadomain: "Data storage domain", //数据存储域名"https://xxx.xxx.xxx" appkey: "The appkey applied on the internet" //网上申请的AppKey );

网络请求的采集 #

自动采集HttpClient的请求数据,并上报至透视宝后台

网络请求端到端实现 #

1、在透视宝后台-配置-应用下,选择相应的服务端 agent,并接入 2、透视宝后台,选择移动下的相应应用, 3、进入设置-参数设置页面 4、找到端到端白名单设置,将相应域名添加到白名单下, 5、重启应用,再次发起相应网络请求,可打通端到端

崩溃信息的采集 #

自动监听崩溃,并上报至透视宝后台

自定义用户信息 #

CloudwiseImpl cloudwiseImpl = new CloudwiseImpl(); /*

  • ext_user_info key:
  • cwsa_user_name :user name
  • cwsa_user_email :user email
  • cwsa_user_token :user token */ cloudwiseImpl.setCustomUserInfo("userId", extUserInfo);
7
likes
0
points
133
downloads

Publisher

unverified uploader

Weekly Downloads

This is the official flutter plugin for Cloudwise,with this plugin you can easily collect your app data on Android and iOS.

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on cloudwise_flutter_plugin

Packages that implement cloudwise_flutter_plugin