hms-push-clientdemo-android icon indicating copy to clipboard operation
hms-push-clientdemo-android copied to clipboard

Hms getToken returning the error 907135000: arguments invalid

Open farkhodkh opened this issue 1 year ago • 0 comments

Hello there!

getting "907135000: arguments invalid" error on

HmsInstanceId.getInstance(context).getToken(appId, tokenScope) action

The device is Huawei nova 12i

The "agconnect-services.json" is added to root folder and for each flavors the appId is the same as in "agconnect-services.json" file and the package name (applicationId) is equal to the one in the application gradle

Scope is "HCM"

project build gradle plugins { ... id("com.huawei.agconnect") } settings.gradle ` pluginManagement { repositories { **** maven { url = "https://developer.huawei.com/repo/" } }

   buildscript {
         classpath("com.huawei.agconnect:agcp:1.9.1.301")
   }

} `

buld.gradle (app) dependencies { implementation("com.huawei.hms:push:6.11.0.300") }

Could you help me please?

Thx!

farkhodkh avatar Oct 28 '24 11:10 farkhodkh