title: ApiException: 907122036: no right
body: <p>I'm trying to create a special version of my app for Huawei App Gallery, this means replacing Firebase Cloud Messaging with Huawei Push Kit.</p>
  <p>My app's failing to obtain a token with this exception:</p>
  <pre><code>I HMSSDK_HmsClient: receive msg status_code:0, error_code800100000, api_name:push.gettoken, app_id:102999567|, pkg_name:org.kman.test1.huawei, session_id:*, transaction_id:102999567ttoken20201001165618936966550, resolution:null
  E HMSSDK_HmsInstanceIdEx: TokenTask failed, ErrorCode: 800100000
  E HMSSDK_AutoInit: Push init failed
  E HMSSDK_AutoInit: com.huawei.hms.common.ApiException: 907122036: no right
  E HMSSDK_AutoInit:       at com.huawei.hms.opendevice.a.a(ErrorEnum.java:272)
  E HMSSDK_AutoInit:       at com.huawei.hms.opendevice.k.doExecute(GetTokenTask.java:58)
  E HMSSDK_AutoInit:       at com.huawei.hms.opendevice.k.doExecute(GetTokenTask.java:34)
  E HMSSDK_AutoInit:       at com.huawei.hms.common.internal.TaskApiCall.onResponse(TaskApiCall.java:190)
  </code></pre>
  <p>According to Huawei documentation, this error (&quot;no right&quot;) means that Push Kit is not enabled for the project. However it is enabled, I just checked.</p>
  <p>I ran into this with my main work project where I'm adding AG support and also same exact issue with a small test app.</p>
  <p>Main work project App ID: 102982583
  Package: org.kman.skymail.huawei</p>
  <p>Small test project App ID: 102999567
  Package: org.kman.test1.huawei</p>
  <p>I have done all (it seems) the other steps: adding agconnect-services.json, enabling plugin 'com.huawei.agconnect', creating a special upload certificate, uploading an .aab, adding sha-256 hashes to Project configuration, adding push_kit_auto_init_enabled to the manifest, creating a subclass of HmsMessageService.</p>