Commit 636bc778e3515ecde518e5c724634d78d6f332c0

Authored by wdn127929
1 parent aa1707b4

推送自定义channel_id

@@ -12,14 +12,14 @@ if (flutterRoot == null) { @@ -12,14 +12,14 @@ if (flutterRoot == null) {
12 } 12 }
13 13
14 14
15 -def flutterVersionCode = "352" 15 +def flutterVersionCode = "353"
16 if (flutterVersionCode == null) { 16 if (flutterVersionCode == null) {
17 - flutterVersionCode = '352' 17 + flutterVersionCode = '353'
18 } 18 }
19 19
20 -def flutterVersionName = "3.5.2" 20 +def flutterVersionName = "3.5.3"
21 if (flutterVersionName == null) { 21 if (flutterVersionName == null) {
22 - flutterVersionName = '3.5.2' 22 + flutterVersionName = '3.5.3'
23 } 23 }
24 apply plugin: 'com.android.application' 24 apply plugin: 'com.android.application'
25 apply plugin: 'kotlin-android' 25 apply plugin: 'kotlin-android'
@@ -437,7 +437,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { @@ -437,7 +437,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver {
437 XgFlutterPlugin().getXgAndroidApi().setOppoPushAppId(appId: "30260281"); 437 XgFlutterPlugin().getXgAndroidApi().setOppoPushAppId(appId: "30260281");
438 XgFlutterPlugin() 438 XgFlutterPlugin()
439 .getXgAndroidApi() 439 .getXgAndroidApi()
440 - .setOppoPushAppKey(appKey: "9b7e372f93794593953f93f118619570"); 440 + .setOppoPushAppKey(appKey: "94d77d10e7bb4c60bcf18a84c8ca8bdd");
441 } 441 }
442 // 设置小米 AppID 和 AppKey。 442 // 设置小米 AppID 和 AppKey。
443 if (await XgFlutterPlugin().getXgAndroidApi().isMiuiRom()) { 443 if (await XgFlutterPlugin().getXgAndroidApi().isMiuiRom()) {
@@ -447,6 +447,18 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { @@ -447,6 +447,18 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver {
447 XgFlutterPlugin() 447 XgFlutterPlugin()
448 .getXgAndroidApi() 448 .getXgAndroidApi()
449 .setMiPushAppKey(appKey: "5231863961456"); 449 .setMiPushAppKey(appKey: "5231863961456");
  450 + } else {
  451 + if (!await XgFlutterPlugin().getXgAndroidApi().isVivoRom()) {
  452 + XgFlutterPlugin()
  453 + .getXgAndroidApi()
  454 + .createNotificationChannelWithSound(
  455 + channelId: 'high_custom_8',
  456 + channelName: '新消息通知',
  457 + enableLights: true,
  458 + enableSound: true,
  459 + enableVibration: true,
  460 + soundFileName: 'tts_voice');
  461 + }
450 } 462 }
451 XgFlutterPlugin().getXgAndroidApi().enableOtherPush(); 463 XgFlutterPlugin().getXgAndroidApi().enableOtherPush();
452 } 464 }