提交 30e41c7f authored 作者: 张国庆's avatar 张国庆

增加 初始化 服务方法

上级 d1726609
...@@ -70,7 +70,10 @@ Stream<OnNotificationReceivedInApp> get onNotificationReceivedInApp => ...@@ -70,7 +70,10 @@ Stream<OnNotificationReceivedInApp> get onNotificationReceivedInApp =>
Future<String?> get deviceId async { Future<String?> get deviceId async {
return _channel.invokeMethod("deviceId"); return _channel.invokeMethod("deviceId");
} }
/// 初始化服务
void initPushService() {
if (Platform.isAndroid) _channel.invokeMethod("initPushService");
}
Future<CommonCallbackResult> get pushChannelStatus async { Future<CommonCallbackResult> get pushChannelStatus async {
var result = await _channel.invokeMethod("checkPushChannelStatus"); var result = await _channel.invokeMethod("checkPushChannelStatus");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论