2

I'm working on a flutter app, and now I need to be able to open my app whenever a URL with a certain pattern is clicked.

In other words, I'd like to have that option from a clicked URL saying "Which app do you want to use to open this link"

and from the shown apps to open this link I want mine to be in there

Is it possible? How can I do this?

Also, I need to say I have done this from Android Studio - Java, but never in flutter/dart, I am a newbie around flutter

6
  • Do you just mean a web app using Flutter? Or Android, iOS, Windows app too? Commented May 6, 2022 at 15:46
  • @RoslanAmir just android Commented May 6, 2022 at 17:34
  • Sorry. I have no idea how you open an Android app using a URL. AFAIK, you install an Android app on an Android device. Commented May 7, 2022 at 5:20
  • Haven't you pressed a url in your phone and it says "Open with" and you have a list of apps? let's say Opera/Chrome/Telegram, and as it is a telegram invitation link you press telegram to open it? Commented May 7, 2022 at 9:58
  • 1
    It is called deep linking as I know Commented May 7, 2022 at 10:06

2 Answers 2

4

I have found the solution, this link is going to give you everything you need for deep linking in flutter:

https://pub.dev/packages/app_links

Documentation/Installation

Sign up to request clarification or add additional context in comments.

Comments

2

The library mentioned was discontinued. This is the new one: https://pub.dev/packages/app_links

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.