[Huawei Developers] Freemind R:
Hi, everyone

The AppsUP contest has already been online, which involves developers from five regions. Believe many developers are eager to search some references. Here I select some excellent integration cases for Account Kit. Hope this can benefit you.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/024/106/470/0890001000024106470.20200703065653.33068561418563436189726900564572:50510703083823:2800:51E2A2EFD1FFE904EB96414524008988063D9B0999B728923D24E22CD3F4EBC4.jpg"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/024/106/470/0890001000024106470.20200703065653.33068561418563436189726900564572:50510703083823:2800:51E2A2EFD1FFE904EB96414524008988063D9B0999B728923D24E22CD3F4EBC4.jpg[/IMG]​

Q: In the SDK, I see it in the ReadSmsConstant class

READ_SMS_BROADCAST_ACTION value is "com. Huawei. HMS. Auth. API. Phone. SMS_RETRIEVED",

But the Client APIS, I see is the description of the READ_SMS_BROADCAST_ACTION value is ". com.huawei.hms.support.sms.com mon SMS_RETRIEVED"

These two are not the same，Which value do I need to set?

A: This is to be used in the SDK.

ReadSmsConstant.READ_SMS_BROADCAST_ACTION

Or com.huawei.hms.auth.api.phone.SMS_RETRIEVED”

Q: I can't get the gender information in the AccountKit，What shall I do?

A: Gender access is not yet supported

Q: Is there a line break between XXXXXX indicates the verification code and hash_value indicates

A: Yes, there must be a new line.

Q: If a user signs in to a game with a HUAWEI ID, will the game server save the HUAWEI ID data?

A: The game app will obtain and save information authorized by the user, such as the avatar and nickname, but cannot obtain other account information.

Q: If a user downloads and installs HMS Core on an OPPO phone, can the user use the HUAWEI ID to sign in to the game on the phone?

A: Yes. HUAWEI Account Kit can be used on a non-Huawei Android mobile phone. Also reference to the table of limitations

https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/emui_version_dependent_features

Q: When I run debug in 'yarn android' this login is run normally but when I build an Apk file this function is display like my video

A: The Keystore to upload is not matching with old Keystore in the Application

Q: What are the application scenarios of silent sign-in? Are there any non-Huawei apps that use silent sign-in?

A: Silent sign-in is provided to benchmark against the corresponding capability provided by GMS. Therefore, their application scenarios are the same, including but not limited to the following:

(1) In the case of authorized sign-in of a user, a developer can update the validity period of the authorization information a period later.

(2) A developer can check whether a user has signed in and been authorized.

Apps that use silent sign-in in Google Play include:

HK01, YouSee Musik, My Beeline v4.8.1, and RTA Smart Drive

Q: Can a HUAWEI ID and a Google account be used in the same APK?

A: Yes, they can be used. Huawei ID and Google ID can be used as login mechanisms in an apk. However, if account interoperation is required, the function of binding both accounts need to be implemented for the app.

Q: Integration Account Kit，Signin after successful signout, does not prompt for login credentials to be entered

A: This is not a issue. Action and Result of SignOut : The HUAWEI Account SDK deletes the HUAWEI ID sign-in information of the user and sends the sign-out result to the app.

Refer: https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/account-guide-v4#h1-3-signing-out-from-huawei-id

After SingOut is invoked, the Huawei ID on the device is still in the login state, as the App has been authorized, so it is a normal case that subsequent signin is not prompting for login credentials.

You can try below scenarios：

Log out Huawei ID on the device from Account Center (Setting ->Account Center -> LOG OUT)

Revoke Huawei ID Authorization (Settings -> Account Center -> Privacy Center -> Control account access -> Select your App and "Cancel Authorization")

Q: How can data of a HUAWEI ID be stored across areas? How can data privacy be protected?

A: HUAWEI ID data is stored in the user's home area selected during user registration. A dedicated privacy team has been set up to review the privacy protection status of each business.

Q: Can the developer replace the Google Play SDK package with HMS SDK package at one click as explained?

A: The function names are the same, but the class names may be different. After correcting the class names, the package can be replaced and imported at one click.

Q: How is HUAWEI Account Kit used on iOS? Does HUAWEI Account Kit support facial recognition?

A: Currently, the HUAWEI Account Kit solution for iOS is not provided externally. In addition, facial recognition is not supported.

Q: Does the Account Management Interface consider integrated subscription functionality?

A: Huawei Account Management Interface also has this function. See “Settings->Huawei Account->Payments and Bills->Subscriptions”. Users can view and cancel subscriptions.

Q: Can a developer with their own account management system use HUAWEI Account Kit?

A: Yes. Many apps allow sign-in through third-party accounts.

Q: Does the Account Management Interface consider integrated subscription functionality?

A: Huawei Account Management Interface also has this function. See “Settings->Huawei Account->Payments and Bills->Subscriptions”. Users can view and cancel subscriptions

About the new frequently asked questions by developers, I will update here regularly.

Or you can directly ask your question in HUAWEI Developer Forum.