Comments (4)
Hi, thanks for trying the plugin and for reaching out.
There are two options for configuring the URL that will launch your instant app:
- Developer specified URL: provide your own URL in the AndroidManifest and prove that you own the website
- 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.
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.
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.
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)
- Support for Asset Bundle manifest in Build and Run HOT 1
- Suggested .net API compatibility level (2.0 Subset) is not available in Unity 2018.3 HOT 3
- Build and Run works perfectly but does not launch on uploading to play console HOT 2
- Unity 2018.3 - link.xml doesn't work when build for console HOT 1
- how to make the game size reduce to 10MB limit HOT 7
- Video Player doesn't work on Android 8.0 device HOT 10
- Build error with Unity 2018.4 and IL2CPP HOT 4
- Install error building with Unity 2019.3 HOT 2
- Invalid value for the 'android:targetSandboxVersion' attribute in the AndroidManifest. HOT 3
- Error Build & R HOT 1
- Error Build & Run on Unity 5.6.6f2 HOT 1
- Zip creation errors when path has spaces in it HOT 2
- '' is an incorrect path for a scene file. BuildPlayer expects paths relative to the project folder. HOT 7
- CookieApi reference generating errors HOT 2
- Specifying asset bundle manifest may not be working
- Infinite spinning when deployed to device HOT 4
- Upload Fail HOT 8
- Is AndroidManifest necessary and "ShowInstallPrompt" can only work after upload to google play? HOT 13
- Is it only build and run on Device?? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-instant-unity-plugin.