Giter Site home page Giter Site logo

Comments (4)

thanwah avatar thanwah commented on May 17, 2024

Hi, thanks for trying the plugin and for reaching out.

There are two options for configuring the URL that will launch your instant app:

  1. Developer specified URL: provide your own URL in the AndroidManifest and prove that you own the website
  2. Automatic URL: do not specify a URL in the AndroidManifest

It sounds like you're trying to use the second approach. In this case you should remove the VIEW intent filter and "default-url" meta-data related to "https://instant.apps" from your AndroidManifest.

After you publish your app in Play Console, the URL https://instant.apps/your.package.name will automatically open your instant app. However, before you publish and while you're testing locally, the https://instant.apps URL will not open your instant app.

If you want to test your app prior to publishing, you can use the "Build and Run" feature of the plugin or you can directly run the command that it calls:

android-sdk/extras/google/instantapps/ia run instant-app.apk

from play-instant-unity-plugin.

hicosmonaut avatar hicosmonaut commented on May 17, 2024

Thank you for your help! I have another question "Build and Run" feature doesn't help me and I run
android-sdk/extras/google/instantapps/ia run instant-app.apk

So, instant-app.apk is a full release apk with instant app inside or just instant app module?

from play-instant-unity-plugin.

thanwah avatar thanwah commented on May 17, 2024

I'm sorry to hear that the "Build and Run" feature isn't working for you. Do you mind sharing the error message that it is printed to the Unity console log as well as the version of Unity that you're using?

Regarding instant app APKs/modules:

  • An instant app and a full release app are both packaged in APKs.
  • There is not much that is special/different about an instant app except some additional requirements for the manifest and for signing (the Unity plugin takes care of these requirements when building an instant app).
  • A typical Unity instant app is only a single APK (you could think of it as a single module).
  • In the example "instant-app.apk" is not a full release apk with instant app inside, it's just an Android app that was built with a couple minor changes to support instant. This APK can be run as an instant app using "ia run", or since it's just an APK, it can be installed and run as a regular app, i.e. "adb install instant-app.apk". Note: I mention this to hopefully clarify that it's just like a regular APK, not because this is typically done.

from play-instant-unity-plugin.

thanwah avatar thanwah commented on May 17, 2024

Closing this issue. If there is still a problem, please resubmit here: https://github.com/google/play-unity-plugins/issues

from play-instant-unity-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.