【问题标题】:[AppGalleryConnectLinkManageService]the ios bundleId does not have permission[AppGallery Connect LinkManageService]ios bundle Id没有权限
【发布时间】:2021-08-07 23:54:11
【问题描述】:

我写了一个使用Applinking Huawei生成链接的方法

  fun generateLink(text: String, promo: String): Single<String> = Single.create { emitter ->
    AppLinking.newBuilder()
            .setUriPrefix(Const.Deeplink.BASE_URL_APPLINKING)
            .setDeepLink(Uri.parse(Const.Deeplink.BASE_WEB + addParams(mapOf(Const.Deeplink.PARAM_PROMOCODE to promo))))
            .setAndroidLinkInfo(AppLinking.AndroidLinkInfo.newBuilder()
                    .setAndroidDeepLink(AGS + Const.Deeplink.PACKAGE_NAME_ANDROID)
                    .build()
            )
            .setIOSLinkInfo(AppLinking.IOSLinkInfo.newBuilder()
                    .setIOSDeepLink(AGS + Const.Deeplink.PACKAGE_NAME_IOS)
                    .setBundleId(Const.Deeplink.PACKAGE_NAME_IOS)
                    .build()
            )
            .buildShortAppLinking(ShortAppLinking.LENGTH.SHORT)
            .addOnSuccessListener { link ->
                Timber.e("${link.testUrl}")
                text.plus("\n").plus(link.shortUrl?.toString()).also {
                    emitter.onSuccess(it)
                    Timber.e(it)
                }
            }.addOnFailureListener {
                var dr = Const.Deeplink.PACKAGE_NAME_ANDROID
                var df = Uri.parse(Const.Deeplink.BASE_WEB + addParams(mapOf(Const.Deeplink.PARAM_PROMOCODE to promo)))
                emitter.onError(it)

            }
}

但有错误

com.huawei.agconnect.applinking.AppLinkingException:  code: 204865654 message: [AppGalleryConnectLinkManageService]the ios bundleId does not have permission

有人遇到过这个吗? PACKAGE_NAME_IOS 是有效的 com.65gb.xxxxx.xxxxx

下班后

【问题讨论】:

    标签: android kotlin huawei-mobile-services huawei-developers appgallery-connect


    【解决方案1】:

    更新

    您需要将AppLinking iOS SDK集成到您的bundleID为com.65gb.xxxx.xxxx的iOS项目中,然后使用handleAppLinking接口接收并获取配置好的iOSDeepLink。

    有关如何在 iOS 中接收 AppLinking 的详细信息,请参阅document


    确保您的 iOS 应用的包 ID 与使用 setBundleId() 方法传递的参数相同。您可以在 AppGallery Connect 中查看包 ID。

    应用链接用于项目下的所有应用。您只能在 AppGallery Connect 中包名在同一项目中的应用之间实现重定向。

    【讨论】:

    • 如果我理解正确,那么在 AppGallery Connect 中我必须以某种方式添加一个 IOS 应用程序,我们对 Firebase 也有类似的东西,我的意思是那里有 Ios,但我不太明白如何在 AppGallery Connect 中添加 IOS
    • 嗨@АлексKnight,你可以参考这个DocsAdding an App to the Project
    • 嗨@shirley,是的,我自己已经找到了,谢谢你的帮助,我的朋友程序员,我会尝试进一步设置它
    • 如果您需要其他帮助,请随时与我们联系。 :D
    • 天哪,这一切都奏效了!!是的,我还有一个问题。通过您的码头 .setIOSDeepLink ("agckit: // example / detail") 如果名称为 bundle ios com.65gb.xxxx.xxxx,该行应该如何正确显示
    猜你喜欢
    • 2013-09-29
    • 2021-01-07
    • 2016-03-11
    • 1970-01-01
    • 1970-01-01
    • 2019-11-05
    • 1970-01-01
    • 2017-06-09
    • 1970-01-01
    相关资源
    最近更新 更多