在 Play 商店导入 APK

Import APK on Play Store

我在 Play 商店导入我的第一个 APK 时遇到了一些困难。一个简单的 WebView 应用程序。

我收到此错误消息:

Importation error. The domain name "https://chimeria.net" you specified is not valid Enter a valid domain name.

其中https://chimeria.net是WebView中嵌入网站的url...

阅读文档后 (https://developers.google.com/digital-asset-links/v1/getting-started):

我从 My Developer Play 商店页面的“应用程序签名”选项卡中获取了 SHA256 值。

screenshot of where i picked up the SHA546 KEY

<meta-data android:name="asset_statements" android:resource="@string/asset_statements" />

<string name="asset_statements">
      [{
        \"relation\": [\"delegate_permission/common.share_location\"],
        \"target\": {
          \"namespace\": \"web\",
          \"site\": \"https://chimeria.net\"
        }
      }]
    </string>

<intent-filter android:autoVerify="true">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="http" android:host="https://chimeria.net" />
                <data android:scheme="https" />
            </intent-filter>

无论我怎么尝试,我的应用程序都被拒绝了,因为 link 没有被接受。 最后我在一天内浪费了所有可能的尝试。 有人会知道我做错了什么吗?

感谢您的帮助

chimeria.net是主机,httpshttp是方案。

您可能想将清单更改为:

<intent-filter android:autoVerify="true">
  <action android:name="android.intent.action.VIEW" />
  <category android:name="android.intent.category.DEFAULT" />
  <category android:name="android.intent.category.BROWSABLE" />
  <data android:scheme="http" android:host="chimeria.net" />
  <data android:scheme="https" android:host="chimeria.net" />
</intent-filter>