Skip to content
RED SAGSkills
mediumMobile App Developer interview question

How would you implement deep links in a mobile app from end to end?

What the interviewer wants to hear

  • Use verified https links (App Links, Universal Links) with the association files on the domain
  • Central router maps URLs to destinations
  • Validate parameters and treat links as untrusted input
  • Handle cold start, warm start, and logged-out users
  • Fallback to the website when the app is not installed, and test every route

Model answer

I prefer verified https links: Android App Links with assetlinks.json and iOS Universal Links with the apple-app-site-association file on our domain, so the same URL opens the app or falls back to the website. In the app, one central router parses the URL into a typed destination, so screens never parse raw strings. I validate every parameter because links are untrusted input that anyone can craft. The router must handle cold start, when the app launches from the link, and warm start, when it is already running. If the destination needs login, I store it as pending and continue after sign-in. I also build a sensible back stack so Back goes somewhere useful. Finally, I add automated tests for each route and check links with adb and on real devices.

Can you answer it under time pressure?

Take a timed medium round and get scored on every answer.

Start mock interview

More medium Mobile App Developer questions