这是一个用于集成个推的插件
在android/app/build.gradle文件中的android.defaultConfig下添加manifestPlaceholders,配置个推相关的应用参数个推Android集成
启动SDK
Getui.register(appID: '', appKey: '', appSecret: '');Getui.clientID()Getui.singleton().receivedMessageData.listen((onData){
//处理透传消息
});Getui.setBadge(value: 0);
Getui.setTags(['value']);
Getui.bindAlias('alias', 'aSn');This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.