public static void showHMSAgreement() {
    com.huawei.android.hms.agent.HMSAgent.Push.queryAgreement(new com.huawei.android.hms.agent.push.handler.QueryAgreementHandler() {
      @Override
      public void onResult(int rst) {
        LOGGER.d("[HMS] query agreement result: " + rst);
      }
    });
  }
public static void showHMSAgreement ( ) { com . huawei . android . hms . agent . HMSAgent . Push . queryAgreement ( new com . huawei . android . hms . agent . push . handler . QueryAgreementHandler ( ) { @ Override public void onResult ( int rst ) { LOGGER . d ( "[HMS] query agreement result: " + rst ) ; } } ) ; }
请求push协议展示
Request Push Protocol Display