增加插件
flutter_umplus: ^0.0.1 flutter_jpush: ^0.0.4
main 方法增加以下代码 void _startupJpush() async { print("初始化jpush"); await FlutterJPush.startup(); print("初始化jpush成功"); } initUMeng() { FlutterUmplus.init( '*******a3578072000cae', channel: 'test', reportCrash: true, logEnable: true, encrypt: true, ); FlutterUmplus.beginPageView('demo'); FlutterUmplus.endPageView('demo'); FlutterUmplus.event('eventName', label: 'eventLabel'); }
来源:CSDN
作者:踏云归
链接:https://blog.csdn.net/beyondforme/article/details/103747975