HUAWEI Push Kit open capability set, which provides public classes and methods for obtaining the application anonymous device identifier (AAID) of apps and obtaining tokens required for accessing HUAWEI Push Kit.
An AAID identifies an app instance running on an intelligent mobile device. Only the app instance identified by the AAID can access the AAID. The AAID is involved only in app installation. Compared with the device-level hardware ID that cannot be reset, the AAID features higher privacy.
To be specific, the AAID has the following features:
Scenarios where the AAID may change include but are not limited to the following:
| Class name | Class description |
| HmsInstanceId | Provides methods for obtaining the AAID of an app and obtaining tokens required for accessing HUAWEI Push Kit. |
| name | description |
| ApiException | Exception returned when a public method in the HMS SDK fails to be called. For details about result codes, please refer to the ErrorEnum class. |