# Use Google Play Instant To Handle Deep Links -- A Real World Scenario

DevFeed: [Use Google Play Instant To Handle Deep Links -- A Real World Scenario](<https://devfeed.tech/articles/use-google-play-instant-to-handle-deep-links-a-real-world-scenario-28873.md>)

Original publisher: [Read original article](<https://medium.com/volvo-cars-engineering/use-google-play-instant-to-handle-deep-links-a-real-world-scenario-c7b6b4db0aad?source=rss----4eed8113139---4>)

Author: Mehdi Satei

Published: 2024-11-07T12:29:53Z

Content type: tutorial

Language: en

Sources: [Volvo Cars](<https://devfeed.tech/sources/volvo-cars-engineering-medium.md>)

Topics: [deeplinks](<https://devfeed.tech/topics/deeplinks.md>), [Google Play](<https://devfeed.tech/topics/google-play.md>), [android-app-bundle](<https://devfeed.tech/topics/android-app-bundle.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [deep](<https://devfeed.tech/tags/deep.md>), [deep-link-android](<https://devfeed.tech/tags/deep-link-android.md>), [google](<https://devfeed.tech/tags/google.md>), [google-play](<https://devfeed.tech/tags/google-play.md>), [google-play-instant](<https://devfeed.tech/tags/google-play-instant.md>), [links](<https://devfeed.tech/tags/links.md>), [user-experience](<https://devfeed.tech/tags/user-experience.md>)

## AI overview

Google Play Instant lets Volvo Cars open a co-drive invitation deep link even when the recipient has not installed the main app. The instant app can handle sign-in or sign-up, preserve the invitation and session data in an Instant App cookie, then prompt installation; the main app retrieves the saved context after installation and login to continue the invitation flow. The excerpt favors a separate instant module for a modular codebase, while noting product flavours as an alternative. It outlines manifest and App Links setup, cookie size checks (the observed limit was about 16 KB), and Play Store publishing. Constraints include keeping the instant app under 10 MB, dependency and UI reuse challenges, and the need for Play Store test-track testing to assess real link launches.

## Source excerpt

Use Google Play Instant To Handle Deep Links -- A Real World ScenarioDiving Deep into Deep Linking with Volvo Cars App Picture this: You've just settled into the driver's seat of your brand-new Volvo car. You swiftly install the Volvo Cars Application, set up an account, and link your car. The experience is exhilarating, and you can't wait to share the same experience and let your partner or your children to co-drive and relish the same thrill. With Volvo Cars App you can do this now! If you're a Volvo car owner, you can now generate a co-drive invitation link, send it over, and once they tap on it, they're all set. From a user's perspective, it sounds dreamy. But, if you switch the lens to that of a developer building this feature, the narrative takes a rather, let's say, 'complex' turn. Tapping on the generated co-drive invitation link is something that we know as deep link. Deep linking is the art of taking a user directly to a particular screen inside the app via a universal URL (a.k.a App Link). It sounds straightforward, but implementing it can give even seasoned developers a run for their money. One significant speed bump in many apps is authentication. Before accessing content, in most cases, a user needs to be authenticated. So, when clicking on the app link, the user needs to have the app installed and be signed in, and only then can the app navigate them directly to the specific content. Now, throw in the unpleasant scenario of the user not having an account, and the plot thickens. The app must intelligently handle the sign-up dance before gracefully resuming the deep link dance. Despite being a bit challenging, when the user taps on a deep link, Volvo Cars App could handle the authentication flow. But at Volvo Cars, we also throw the curveball of "Can we deliver a great user experience for a co-driving scenario, with the generated deep link for the users who don't have our app installed?" If a user taps on a deep link without having the app installed, gui