Skip to content

hui-z/getui_plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

getui

这是一个用于集成个推的插件

使用

初始化

android/app/build.gradle文件中的android.defaultConfig下添加manifestPlaceholders,配置个推相关的应用参数个推Android集成

启动SDK

Getui.register(appID: '', appKey: '', appSecret: '');

获取cid

Getui.clientID()

监听透传消息

Getui.singleton().receivedMessageData.listen((onData){
    //处理透传消息
});

设置角标,别名与标签

Getui.setBadge(value: 0);
Getui.setTags(['value']);
Getui.bindAlias('alias', 'aSn');

Getting Started

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.