Errors in the Android Instant App Store

Whenever I upload my database and add the APK to the Play Store, I get the following errors:

  • You must provide the default URL for the APK Instant App. More details
  • Your site "www.example.com" is not linked through Digital Assets Link protocol to your application. Please connect your site using Digital Assets Link for your application.
  • You must have at least one active APK that maps to "www.example.com" through a web intent filter.

And here is my manifest file: ( EDITED )

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.ex.example.feature.productdetail">

      <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
      <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
      <uses-permission android:name="android.permission.INTERNET"/>
      <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
      <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
      <uses-permission android:name="android.permission.WAKE_LOCK"/>


      <application>

    <activity
        android:name=".activity.ProductDetail"
        android:configChanges="orientation|screenSize"
        android:screenOrientation="portrait">
      <meta-data
          android:name="default-url"
          android:value="https://www.example.com/product/12345" />

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

      <intent-filter
          android:autoVerify="true"
          android:order="1"
          >
        <category android:name="android.intent.category.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>

        <data android:scheme="http" android:host="www.example.com"/>
        <data android:scheme="https" android:host="www.example.com"/>
        <data android:pathPattern="/product/12345"/>
      </intent-filter>

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

    </activity>

    <meta-data
        android:name="com.facebook.sdk.ApplicationId"
        android:value="@string/facebook_app_id"/>
  </application>
    </manifest>

I put the assetlinks.json file on my website, and when I continue the test link file, it gives success. What am I doing wrong? Thanks for the help in advanced

+1
3

, URL- (https://www.example.com) - (https://www.example.com/product/productId).

URL- , URL-, , URL- .

+3

, www.example.com

> <data android:scheme="http" android:host="www.yuorwebsite.com"/>
> <data android:scheme="https" android:host="www.yuorwebsite.com"/>

- ,

<meta-data
 Android: name = "default-url"
 Android: value = "https://yourwebsite.com/main" />
0

@KitKat AdamK. . Google Play Android, . <intent-filter>, CATEGORY_LAUNCHER ACTION_MAIN intents.

Your application should also determine the default URL for your application. Within the same Android manifest as your activity at the entry point, you define the default URL for your application by adding an element <meta-data>with an attribute value that provides a valid HTTPS URL that can handle the activity. In addition, this default url should also be part of the filter CATEGORY_LAUNCHERin the installed application.

0
source

Source: https://habr.com/ru/post/1691127/


All Articles