Commit a34c40989dcb4a38fba51742816941f3d7cd167b

Authored by wdn127929
1 parent 5e48db50

没哈用

... ... @@ -111,6 +111,7 @@ dependencies {
implementation 'com.tencent.tpns:xiaomi:1.2.0.3-release' // 小米推送
implementation 'com.tencent.tpns:oppo:1.2.0.3-release' // OPPO 推送
implementation 'com.tencent.tpns:vivo:1.2.0.3-release' // vivo 推送
// implementation 'com.tencent.tpns:tpns:1.3.2.0-release' // TPNS SDK
implementation 'com.amap.api:location:latest.integration'
implementation 'com.zhihu.android:matisse:0.5.3-beta3'
implementation 'com.github.bumptech.glide:glide:4.11.0'
... ...
... ... @@ -449,6 +449,15 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver {
.setMiPushAppKey(appKey: "5231863961456");
}
XgFlutterPlugin().getXgAndroidApi().enableOtherPush();
XgFlutterPlugin().getXgAndroidApi().createNotificationChannel(
channelId: 'hw_1',
channelName: '新订单通知',
);
XgFlutterPlugin.xgApi.createNotificationChannel(
channelName: 'ddd',
channelId: 'hw_1'
);
}
/// 启动TPNS服务
... ...
... ... @@ -1040,11 +1040,11 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "V1.0.4"
resolved-ref: "56e4733d7801418fa429087ca4227197b27e7c66"
url: "https://git.code.tencent.com/tpns/XG-Flutter-Plugin.git"
ref: "V1.1.6"
resolved-ref: f7114300a9b4dd34ad096a669574b2a0bcd693c2
url: "https://github.com/TencentCloud/TPNS-Flutter-Plugin"
source: git
version: "1.0.4"
version: "1.1.6"
typed_data:
dependency: transitive
description:
... ...
... ... @@ -81,10 +81,14 @@ dependencies:
# connectivity: ^0.4.8
connectivity: ^3.0.6
# 信鸽推送
# tpns_flutter_plugin:
# git:
# url: https://git.code.tencent.com/tpns/XG-Flutter-Plugin.git
# ref: V1.0.4
tpns_flutter_plugin:
git:
url: https://git.code.tencent.com/tpns/XG-Flutter-Plugin.git
ref: V1.0.4
git:
url: https://github.com/TencentCloud/TPNS-Flutter-Plugin
ref: V1.1.6
# 安装apk
install_plugin: ^2.0.1
# 获取应用版本信息
... ...