Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.9.0.300 #7

Open
DiegoV71 opened this issue Jun 22, 2023 · 0 comments
Open

Version 1.9.0.300 #7

DiegoV71 opened this issue Jun 22, 2023 · 0 comments

Comments

@DiegoV71
Copy link

DiegoV71 commented Jun 22, 2023

We encountered a problem and contacted support with it.

AGConnectAppLinking.Instance.GetAppLinking method fails with 400 Bad Request error when handling app link

I try to use AGConnectAppLinking.Instance.GetAppLinking method to handle short app link generated by corresponding REST API
https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-References/applinking-create-0000001141716380

Here is an example of my app link: https://vmeste.drru.agconnect.link/mbgKo?agc_click_id=785612042552743424&agc_from=1

When I go by this link to Huawei App Gallery, install the app and start it I try to handle Intent and extract the app link by the next code:

AGConnectAppLinking.Instance.GetAppLinking(this, this.Intent)
.AddOnSuccessListener(huaweiDynamicLinkListener)
.AddOnFailureListener(huaweiDynamicLinkListener);

where huaweiDynamicLinkListener is my listener instance.

I am getting an error in my logs:

code: 400 message: Bad Request
--- End of managed Huawei.Agconnect.Exception.AGCServerException stack trace ---
com.huawei.agconnect.exception.AGCServerException: code: 400 message: Bad Request
at com.huawei.agconnect.credential.obs.i$2.a(Unknown Source:113)
at com.huawei.agconnect.credential.obs.i$2.onSuccess(Unknown Source:2)
at com.huawei.hmf.tasks.a.h$1.run(Unknown Source:27)
at com.huawei.hmf.tasks.TaskExecutors$ImmediateExecutor.execute(Unknown Source:0)
at com.huawei.hmf.tasks.a.h.onComplete(Unknown Source:19)
at com.huawei.hmf.tasks.a.i.b(Unknown Source:21)
at com.huawei.hmf.tasks.a.i.a(Unknown Source:19)
at com.huawei.hmf.tasks.TaskCompletionSource.setResult(Unknown Source:2)
at com.huawei.hmf.tasks.a.j$1.run(Unknown Source:8)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:929)

Device Model: Huawei P40 lite E ART-L29N EMUI 10.1.0 Android 10

I use Xamarin SDK: Huawei.Agconnect.Applinking 1.4.2.301, Huawei.Agconnect.Apms 1.5.2.301

Support answer:

Dear developer,
Your SDK version is too early. Change the App LinkingSDK version to 1.9.0.300 and the APMS SDK version to 1.6.2.300 and try again.

Please, can you update library to 1.9.0.300 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant