问题标签 [agconnect-functions]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
44 浏览

java - Cannot instance AGConnectFunction

I'm referring to this code lab here: Cloud Functions for Android

Besides that "configure the following address" appears to be a wrongful CN to EN translation
and that I'm using the current version 1.6.0.300 instead; the IDE gives me these imports:

enter image description here


Please don't close for requesting a library; because it is "simply not there" (see the screenshot), despite the AAR is being located at: ~/.gradle/caches/modules-2/files-2.1/com.huawei.agconnect/agconnect-function/1.6.0.300/ed356f3bc516e39734b8a6b1dd7ec9a680d3bffd/agconnect-function-1.6.0.300.aar and can be extracted, from which I know for certain that it should be called:

And there's also com.huawei.agconnect.function.FunctionRegistrar, but I have no clue how to obtain an instance. Therefore the question is, how to import class AGConnectFunction?

0 投票
2 回答
55 浏览

php - 如何使用PHP在服务器端验证华为ID

在 Android 应用程序上,我设法使用 AGConnectAuth 检索令牌。现在我想使用 PHP 在服务器端验证该令牌。任何想法?

我尝试使用参数id_token=eyJhbGciOiJQUzI1NiIsImtpZCI6IXXX调用https://oauth-login.cloud.huawei.com/oauth2/v3/tokeninfo并返回以下错误:

0 投票
0 回答
10 浏览

android - HMS:集成com.huawei.agconnect:agconnect-auth:1.6.4.300后崩溃

我打算使用Facebook和google登录服务,所以我们集成了com.huawei.agconnect:agconnect-auth:1.6.4.300。

但是,整合后,游戏崩溃了。如下所示

在此处输入图像描述