Last updated:
0 purchases
flutter pgyer
flutter_pgyer #
蒲公英内测分发:数据统计、原生异常上报、flutter异常上报、应用更新、用户反馈 #
1、引入 #
dependencies:
flutter_pgyer: lastVersion
copied to clipboard
2、使用 #
import 'package:flutter_pgyer/flutter_pgyer.dart';
//使用flutter异常上报
void main() => FlutterPgyer.reportException(()=>runApp(MyApp()));
//初始化
FlutterPgyer.init(
iOSAppKey: "your ios appkey",
androidApiKey: "your android apikey",
frontJSToken: "your frontjs token",
);
//用户反馈附带参数,iOS专用
FlutterPgyer.setEnableFeedback(param: map);
//检查更新,justNotify默认true
FlutterPgyer.checkSoftwareUpdate(justNotify: false);
//检查更新回调,justNotify为false时回调
FlutterPgyer.onCheckUpgrade.listen((result){});
//手动上报异常
FlutterPgyer.uploadException({String message, String detail});
copied to clipboard
Android #
在项目manifest里添加(如果对统计没有要求,可不配置,区别在于上传apk到蒲公英时,能不能检测到集成,无法检测到就不会有统计)
<meta-data
android:name="PGYER_API_KEY"
android:value="your api key"/>
<meta-data
android:name="PGYER_FRONTJS_KEY"
android:value="your frontjs key"/>
copied to clipboard
3、已知问题 #
1)iOS异常上报debug不可用,打包ipa没有测试,如有问题请issue
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.