enableAPNs method

void enableAPNs(
  1. String certName
)

~english Enables Apple Push Notification service (APNs) on iOS devices.

Param certName The APNs certificate name. ~end

~chinese 开启 Apple 推送通知服务(APNs)推送。

Param certName APNs 推送证书的名称。 ~end

Implementation

void enableAPNs(String certName) {
  _pushConfig.enableAPNS = true;
  _pushConfig.apnsCertName = certName;
}