On some devices, HmsInstanceId.deleteToken throws "com.huawei.hms.common.ApiException: 907135000: arguments invalid" while HmsInstanceId.getToken returns an empty string?
I have several huawei devices without google services on which this problem does not reproduce (eg JNY-LX1 ENUI 10.1.0). That is, on them I successfully receive a new token and receive notifications.
And there is, for example, a mediapad T5 EMUI 8.0.0 device (both with Google services and with HMS Core at the same time), on which so far it has not been possible to get either HmsInstanceId.deleteToken or HmsInstanceId.getToken to work successfully. I tried to install different versions of HMS Core on phones (I'm currently testing on 6.6.0.311). Judging by the description, my problem is very similar to https://github.com/HMS-Core/hms-push-clientdemo-android/issues/6, but the comments from there did not help me at all.