initOppoPush static method

Future<void> initOppoPush({
  1. required String appKey,
  2. required String appSecret,
  3. bool needLog = false,
})

初始化OPPO push, appKey 应用appKey appSecret 应用appSecret needLog 应用是否打开推送日志

Implementation

static Future<void> initOppoPush({
  required String appKey,
  required String appSecret,
  bool needLog=false,
}) async {
  return await channel.invokeMethod(Config.methodInit, {"type":PushType.oppo,
    "appKey": appKey,
    "appSecret": appSecret,
    "needLog": needLog,
    "enableLog": needLog,
  });
}