setup method

void setup({
  1. String appKey = '',
  2. bool production = false,
  3. String channel = '',
  4. bool debug = false,
})
override

Implementation

void setup({
  String appKey = '',
  bool production = false,
  String channel = '',
  bool debug = false,
}) {
  print(flutter_log + "setup");
  _jpushHarmonySdkPlugin.setDebug(debug);
  if (channel.isNotEmpty) {
    _jpushHarmonySdkPlugin.setChannel(channel);
  }
  if (appKey.isNotEmpty) {
    _jpushHarmonySdkPlugin.setAppKey(appKey);
  } else {
    print(flutter_log + "appKey is empty");
  }
  _jpushHarmonySdkPlugin.init();
}