Your site 'www.xxxxx.com' has not been linked through the Digital Assets Link protocol to your app

痴心易碎 提交于 2019-12-11 15:08:55

问题


I have try many times for upload an instant app, but always get this error at google play console.

Your site 'www.builtbee.com' has not been linked through the Digital Assets Link protocol to your app. Please link your site through the Digital Assets Link protocol to your app.

Here is my manifest....

<?xml version="1.0" encoding="utf-8"?>

<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">

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

    <activity
        android:name=".Home"
        android:screenOrientation="portrait">

        <meta-data
            android:name="default-url"
            android:value="https://www.builtbee.com" />

        <intent-filter
            android:autoVerify="true"
            android:order="1">

            <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" />
            <data android:scheme="https" />
            <data android:host="www.builtbee.com" />
            <data android:pathPattern="/instantApp" />
        </intent-filter>

        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>

    </activity>

and i have pass the digital asset link with my release keystore file.

https://i.stack.imgur.com/UvcTR.png

Am I miss something?

Thanks


回答1:


Try to follow the steps provided in the documentation and also see the discussion in the SO post.

To add intent filters and URL handling, follow these steps:

  1. Select Tools > App Links Assistant.
  2. Click Open URL Mapping Editor and then click Add at the bottom of the URL Mapping list to add a new URL mapping.

  3. Add details for the new URL mapping: Figure 1. Add basic details about your site's link structure to map URLs to activities in your app.

  4. The App Links Assistant adds intent filters based on your URL mapping to the AndroidManifest.xml file, and highlights it in the Preview field. If you'd like to make any changes, click Open AndroidManifest.xml to edit the intent filter. (Learn more about intent filters in Android.)

  5. To verify your URL mapping works properly, enter a URL in the Check URL Mapping field and click Check Mapping. If it's working correctly, the success message shows that the URL you entered maps to the activity you selected.

You can visit this documentation if you needed a reference about the structure of an instant app project in android.

Another thing, double check if https://www.mywebsitename.com/.well-known/assetlinks.json can be accessed from external network. To do this, switch to a public wifi and verify if the json file can load properly.

Refer to this SO post for further details

Please check if your website asset link file is not behind some form of authentication, internal IP, or blocked by firewall. Play Store Developer Console can not access the digital asset link file if it is not publicly accessible.

Hope this helps.




回答2:


I manage to solved it myself. This problem happen because i generate the assetlinks.json with my upload key, which is wrong. So i just edit the json file with my release key and put at .well-known folder then the problem solved.




回答3:


Agree with Kaze, I was having the same issue and finally figured out it was because you need to put in the digital asset link file, the app release key and not the upload key you pull from the google play console.



来源:https://stackoverflow.com/questions/45893236/your-site-www-xxxxx-com-has-not-been-linked-through-the-digital-assets-link-pr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!