startMeizuPush method

void startMeizuPush({
  1. required String appId,
  2. required String appKey,
})

开启魅族手机厂商通道 appId为在魅族平台注册所得Id appKey为在魅族平台注册所得key

Implementation

void startMeizuPush({required String appId, required String appKey}) async {
  final bool isMeiZu = await _channel.invokeMethod('isMeizuRom');
  if (isMeiZu) {
    _channel.invokeMethod('setMzPushAppId', {'appId': appId});
    _channel.invokeMethod('setMzPushAppKey', {'appKey': appKey});
    _channel.invokeMethod('enableOtherPush');
    _channel.invokeMethod('regPush');
  }
}