|
@@ -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
|
}
|