BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

First Android Instant Apps Are Available

| by Abel Avram Follow 4 Followers on Jan 25, 2017. Estimated reading time: 2 minutes |

Google has made available a number of applications as Instant Apps in order to gather user feedback. The SDK is to be made available to all later this year.

Google has recently announced that several Android applications are ready as Instant Apps. Although “thousands of developers” have expressed their interest in building such applications, Google has named only four of them - BuzzFeed, Periscope, Viki, Wish - as being ready for the general public to test in order to gather feedback and improve the framework. They intend to open up the SDK and make the framework available to all later this year.

Instant Apps is Google’s new approach to deep linking. Instead of having a web application and navigating to a certain page of it based on its URL, one can take a regular Android application, split it up in modules, and a certain module is loaded and run when the user chooses a related action in another application, without having to install the application. Google introduced this functionality last year at Google I/O. InfoQ has covered the subject at that time, providing information on how Instant Apps work, what the benefits are, what some of the conditions to be met by developers are, and how to publish one. We won’t mention those details here.

Google has published guidance on how to make an application ready to run as an Instant App. The main points are:

  1. Remove any unneeded bulk from your app.
  2. Support URL-based navigation. This is based on App Links introduced in Android 6.0. Navigation to the target activity and between activities is done via URL links associated to those activities.
  3. Refactor the code where necessary. The modules must be less than 4MB in size.
  4. Use the runtime permissions existent in Android 6+.
  5. Implement Smart Lock for Passwords if the app authenticates users.
  6. Move unsupported features to a separate library that is loaded with the installed application, but not available as Instant App. Some of the unsupported ways to load Instant Apps are: background services, content providers, broadcast receivers, and push notifications. Instant Apps cannot access the external storage, discover or interact with apps on the device via intents, receive broadcasts, access GCM, access some device identifiers, change settings. Most of this functionality is forbidden to Instant Apps to protect the user.

Although Instant Apps depend on the runtime permissions introduced with Android 6.0, they can run on earlier versions of Android starting with 4.1+ (API 16+), but they require Play Services.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT