GithubHelp home page GithubHelp logo

deeplink-flutter's Introduction

QUICKSTART

SETUP DEEPLINK IN FLUTTER

ANDROID

  1. Open the Flutter project with Android Studio or VSCode.
  2. Navigate to android/app/src/main/AndroidManifest.xml file
  3. Add the following metadata tag and intent filter inside the <activity> tag with .MainActivity
intent-filter android:autoVerify="true">
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>undefined</intent-filter>undefined<meta-data android:name="flutter_deeplinking_enabled" android:value="true" />undefined<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https"/>
<data android:host="berkah.app"/>undefined</intent-filter    >
  1. Get SHA256 Fingerprint Mac :

    keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
    

    Windows :

    keytool -list -v -keystore "\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
    

    Linux :

    keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
    
  2. Config assetlinks.json The hosted file should look similar to this:

    [
      {
    "relation": [
      "delegate_permission/common.handle_all_urls"
    ],
    "target": {
      "namespace": "android_app",
      "package_name": "com.example.deeplink_cookbook",
      "sha256_cert_fingerprints": [
        "FF:2A:CF:7B:DD:CC:F1:03:3E:E8:B2:27:7C:A2:E3:3C:DE:13:DB:AC:8E:EB:3A:B9:72:A1:0E:26:8A:F5:EC:AF"
    			]  
            }  
        }
    ]
    
    1. Set the package_name value to your Android application ID.

    2. Set sha256_cert_fingerprints to the value you got from the previous step.

    3. Host the file at a URL that resembles the following: <webdomain>/.well-known/assetlinks.json

    4. Verify that your browser can access this file.

  3. Testing

    adb shell 'am start -W -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "https://yourdomain.com"'
    

IOS

Cooming Soon.

deeplink-flutter's People

Contributors

riswanda776 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.