startOPPOPush method
void
startOPPOPush({})
开启oppo厂商通道 isNotification 是否开启OPPO通知 appId为在Oppo平台注册所得Id appKey为在Oppo平台注册所得Key
Implementation
void startOPPOPush({required String appId,required String appKey,required bool isNotification}) async {
final bool isOppo = await _channel.invokeMethod('isOppoRom');
if (isOppo) {
_channel.invokeMethod(
'enableOppoNotification', {'isNotification': isNotification});
_channel.invokeMethod('setOppoPushAppId', {'appId': appId});
_channel.invokeMethod('setOppoPushAppKey', {'appKey': appKey});
_channel.invokeMethod('enableOtherPush');
_channel.invokeMethod('regPush');
}
}