onGetToken
Called when HMS push token is successfully retrieved.
This callback is executed on the main thread after the token has been retrieved from Huawei Mobile Services. Use this to store the token, send it to your server, or forward it to Pushwoosh.
Parameters
token
the retrieved HMS push token