Showing
4 changed files
with
21 additions
and
7 deletions
| @@ -111,6 +111,7 @@ dependencies { | @@ -111,6 +111,7 @@ dependencies { | ||
| 111 | implementation 'com.tencent.tpns:xiaomi:1.2.0.3-release' // 小米推送 | 111 | implementation 'com.tencent.tpns:xiaomi:1.2.0.3-release' // 小米推送 |
| 112 | implementation 'com.tencent.tpns:oppo:1.2.0.3-release' // OPPO 推送 | 112 | implementation 'com.tencent.tpns:oppo:1.2.0.3-release' // OPPO 推送 |
| 113 | implementation 'com.tencent.tpns:vivo:1.2.0.3-release' // vivo 推送 | 113 | implementation 'com.tencent.tpns:vivo:1.2.0.3-release' // vivo 推送 |
| 114 | + // implementation 'com.tencent.tpns:tpns:1.3.2.0-release' // TPNS SDK | ||
| 114 | implementation 'com.amap.api:location:latest.integration' | 115 | implementation 'com.amap.api:location:latest.integration' |
| 115 | implementation 'com.zhihu.android:matisse:0.5.3-beta3' | 116 | implementation 'com.zhihu.android:matisse:0.5.3-beta3' |
| 116 | implementation 'com.github.bumptech.glide:glide:4.11.0' | 117 | implementation 'com.github.bumptech.glide:glide:4.11.0' |
| @@ -449,6 +449,15 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { | @@ -449,6 +449,15 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { | ||
| 449 | .setMiPushAppKey(appKey: "5231863961456"); | 449 | .setMiPushAppKey(appKey: "5231863961456"); |
| 450 | } | 450 | } |
| 451 | XgFlutterPlugin().getXgAndroidApi().enableOtherPush(); | 451 | XgFlutterPlugin().getXgAndroidApi().enableOtherPush(); |
| 452 | + XgFlutterPlugin().getXgAndroidApi().createNotificationChannel( | ||
| 453 | + channelId: 'hw_1', | ||
| 454 | + channelName: '新订单通知', | ||
| 455 | + ); | ||
| 456 | + | ||
| 457 | + XgFlutterPlugin.xgApi.createNotificationChannel( | ||
| 458 | + channelName: 'ddd', | ||
| 459 | + channelId: 'hw_1' | ||
| 460 | + ); | ||
| 452 | } | 461 | } |
| 453 | 462 | ||
| 454 | /// 启动TPNS服务 | 463 | /// 启动TPNS服务 |
| @@ -1040,11 +1040,11 @@ packages: | @@ -1040,11 +1040,11 @@ packages: | ||
| 1040 | dependency: "direct main" | 1040 | dependency: "direct main" |
| 1041 | description: | 1041 | description: |
| 1042 | path: "." | 1042 | path: "." |
| 1043 | - ref: "V1.0.4" | ||
| 1044 | - resolved-ref: "56e4733d7801418fa429087ca4227197b27e7c66" | ||
| 1045 | - url: "https://git.code.tencent.com/tpns/XG-Flutter-Plugin.git" | 1043 | + ref: "V1.1.6" |
| 1044 | + resolved-ref: f7114300a9b4dd34ad096a669574b2a0bcd693c2 | ||
| 1045 | + url: "https://github.com/TencentCloud/TPNS-Flutter-Plugin" | ||
| 1046 | source: git | 1046 | source: git |
| 1047 | - version: "1.0.4" | 1047 | + version: "1.1.6" |
| 1048 | typed_data: | 1048 | typed_data: |
| 1049 | dependency: transitive | 1049 | dependency: transitive |
| 1050 | description: | 1050 | description: |
| @@ -81,10 +81,14 @@ dependencies: | @@ -81,10 +81,14 @@ dependencies: | ||
| 81 | # connectivity: ^0.4.8 | 81 | # connectivity: ^0.4.8 |
| 82 | connectivity: ^3.0.6 | 82 | connectivity: ^3.0.6 |
| 83 | # 信鸽推送 | 83 | # 信鸽推送 |
| 84 | + # tpns_flutter_plugin: | ||
| 85 | + # git: | ||
| 86 | + # url: https://git.code.tencent.com/tpns/XG-Flutter-Plugin.git | ||
| 87 | + # ref: V1.0.4 | ||
| 84 | tpns_flutter_plugin: | 88 | tpns_flutter_plugin: |
| 85 | - git: | ||
| 86 | - url: https://git.code.tencent.com/tpns/XG-Flutter-Plugin.git | ||
| 87 | - ref: V1.0.4 | 89 | + git: |
| 90 | + url: https://github.com/TencentCloud/TPNS-Flutter-Plugin | ||
| 91 | + ref: V1.1.6 | ||
| 88 | # 安装apk | 92 | # 安装apk |
| 89 | install_plugin: ^2.0.1 | 93 | install_plugin: ^2.0.1 |
| 90 | # 获取应用版本信息 | 94 | # 获取应用版本信息 |
-
Please register or login to post a comment