Here you can find instruction how to build instant app using Defold.
Setup
You can use the InstantApp extension in your own project by adding this project as a Defold library dependency. Open your game.project file and in the dependencies field under project add:
If you are working on cross-platform application the best practice to check the existence of instantapp module, this module exists only in android bundle:
Gets the instant application cookie for this app. Non instant apps and apps that were instant but were upgraded to normal apps can still access this API.
Sets the instant application cookie for the calling app. Non instant apps and apps that were instant but were upgraded to normal apps can still access this API.
Unfortunately, for now, I have only a dirty demo in test mode, but I’ll try to do an example later on this week. Also, I wanna add new functions for this NE.
Interesting fact: players who launched the Google Instant App on a page on Google Play account for approximately 10-20% of the number of players who installed the game.
In my opinion, this is a pretty good result, considering that we are talking only about organic traffic (from advertising you can launch the Instant app via a direct link).
I didn’t bother much and just using the Instant App extension I check if the game is an instant application, if yes, instead of restarting at the end of the level, I suggest installing the full game (almost the same apk, but on a permanent basis). Even with this approach, the game fits into a 4Mb limit for applications (for games, a 10Mb limit).
Hi @AGulev is there any chance you could please provide updated instructions for building the instant app as an AAB in the latest version of Defold? It says here “All new instant experiences must publish with instant-enabled app bundles”.
Thanks, trying it now. One thing I’m confused about is the version codes. How do I set a seperate version code for the instant app and the installable app? Do I need to have a seperate Defold project for the instant app?