Android Instant App Play Store Errors

前端 未结 3 2122
深忆病人
深忆病人 2020-12-11 13:20

Whenever I upload my base and feature APKs to Play Store I got these errors :

  • You must provide a default URL for your Instant App APKs. Learn More
  • Yo
相关标签:
3条回答
  • 2020-12-11 13:38

    I agree with @KitKat and AdamK. Based from this documentation. To allow Google Play and Android launcher to discover your app, you must provide at least one activity as the entry point for your app. In the manifest for your app, the entry point activity must have an <intent-filter> element that includes the CATEGORY_LAUNCHER and ACTION_MAIN intents.

    Your app must also define a default URL for your app. Within the same Android manifest as your entry-point activity, you define the default URL for your app by adding a <meta-data> element with a value attribute that provides a valid HTTPS URL that the activity can handle. Further, this default url must also be part of the CATEGORY_LAUNCHER activity's intent filter in the installed app.

    0 讨论(0)
  • 2020-12-11 13:40

    You must specify the host of your domain in the manifest, you can not use www.example.com

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

    , also before the intent - filter in manifest, specify

    <meta-data
     Android: name = "default-url"
     Android: value = "https://yourwebsite.com/main" />
    
    0 讨论(0)
  • 2020-12-11 13:41

    This is because the default URL you specified (https://www.example.com) is not supported by the intent-filters in your Instant App (https://www.example.com/product/productId).

    You will either need to update the default URL so it points to a supported URL, or add a new intent-filter that supports the default URL.

    0 讨论(0)
提交回复
热议问题