|
...
|
...
|
@@ -437,7 +437,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { |
|
|
|
XgFlutterPlugin().getXgAndroidApi().setOppoPushAppId(appId: "30260281");
|
|
|
|
XgFlutterPlugin()
|
|
|
|
.getXgAndroidApi()
|
|
|
|
.setOppoPushAppKey(appKey: "9b7e372f93794593953f93f118619570");
|
|
|
|
.setOppoPushAppKey(appKey: "94d77d10e7bb4c60bcf18a84c8ca8bdd");
|
|
|
|
}
|
|
|
|
// 设置小米 AppID 和 AppKey。
|
|
|
|
if (await XgFlutterPlugin().getXgAndroidApi().isMiuiRom()) {
|
|
...
|
...
|
@@ -447,6 +447,18 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { |
|
|
|
XgFlutterPlugin()
|
|
|
|
.getXgAndroidApi()
|
|
|
|
.setMiPushAppKey(appKey: "5231863961456");
|
|
|
|
} else {
|
|
|
|
if (!await XgFlutterPlugin().getXgAndroidApi().isVivoRom()) {
|
|
|
|
XgFlutterPlugin()
|
|
|
|
.getXgAndroidApi()
|
|
|
|
.createNotificationChannelWithSound(
|
|
|
|
channelId: 'high_custom_8',
|
|
|
|
channelName: '新消息通知',
|
|
|
|
enableLights: true,
|
|
|
|
enableSound: true,
|
|
|
|
enableVibration: true,
|
|
|
|
soundFileName: 'tts_voice');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
XgFlutterPlugin().getXgAndroidApi().enableOtherPush();
|
|
|
|
}
|
...
|
...
|
|