app_links_module
Dynamically handle incoming links in your app.
App Configuration
- If the juneflow project doesn't exist, please create it by following this guide.
- open terminal in the juneflow project root directory, enter the following command.
june add app_links_module
WebSite Configuration
- use this template, create new repository in your github account.
- clone the repository to your local computer.
- go to cloudflare, login and select Workers & Pages > Overview > Create application > Pages Tap > Connect to Git > select the repository you just created. > Begin setup > Save and Deploy.
- open cloned project, go to index.html file, replace the content with the following code.
your_scheme
-> your app scheme name. ex) myappyour.app.package
-> your app package name. ex) com.example.myapp
android part setting
- get sha-256 fingerprint from your app
- if you want get debug fingerprint on mac, enter the following command in terminal.
- if your computer not installed java, please install it first.
- go to install page, download and install
macOS x64 Installer.
- go to install page, download and install
- if your computer not installed java, please install it first.
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
- if you want get debug fingerprint on windows, enter the following command in terminal.
- if your computer not installed java, please install it first.
- go to install page, download and install
Windows x64 Installer.
- go to settings > system > about > advanced system settings > environment variables > system variables > path > edit > new > paste the path.
- ex) C:\Program Files\Java\jdk-16\bin
- create new android project and run once to generate the debug.keystore file.
- go to install page, download and install
- if your computer not installed java, please install it first.
keytool -list -v -keystore "C:\Users\[UserName]\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
- if you want get release fingerprint, create appbundle and upload to google play store, then you can find the sha-256 fingerprint in app signing section in google play console.
flutter build appbundle
- replace
11:22:33:44:55:66...
in.well-known/assetlinks.json
file with the sha-256 fingerprint you just got. - replace
your.package.name
in.well-known/assetlinks.json
file with your app package name. ex) com.example.myapp
ios part setting
-
replace
apple team id
in.well-known/apple-app-site-association
file with your apple team id.- you can find your apple team id membership section in apple developer account.
-
replace [
app bundle id
] in.well-known/apple-app-site-association
file with your app package name. ex) com.example.myapp -
commit and push to github for update cloudflare pages.
Android Configuration
- add the app link and deep link code inside .MainActivity activity in android/app/src/main/AndroidManifest.xml file.
- replace
your_scheme
with your app scheme name. ex) myapp - replace
your.app.package
with your app package name. ex) com.example.myapp - replace
your.web.site
with your web site url that you created in step 5.
<!-- App Link -->
<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="http" android:host="[your.web.site]" />
<data android:scheme="https" android:host="[your.web.site]" />
</intent-filter>
<!-- Deep Link -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- Add optional android:host to distinguish your app
from others in case of conflicting scheme name -->
<data android:scheme="[your_scheme]" android:host="[your.app.package]" />
<!-- <data android:scheme="sample" /> -->
</intent-filter>
iOS Configuration
- open xcode in /ios/Runner.xcworkspace, go to Runner > Info > URL Types > add new URL Type. > add URL Schemes with your app scheme name. ex) sample
- go to Signing & Capabilities > + Capability > Associated Domains > add new Associated Domain. > add your web site url with applinks prefix. ex) applinks:your.web.site
- Warning
- when write applinks prefix, do not add https:// prefix. ex) applinks:your.web.site
- do not add / at the end of the url. ex) applinks:your.web.site
- Warning
MacOS Configuration
- open xcode in /macos/Runner.xcworkspace, go to Runner > Info > URL Types > add new URL Type. > add URL Schemes with your app scheme name. ex) sample
- go to Signing & Capabilities > + Capability > Associated Domains > add new Associated Domain. > add your web site url with applinks prefix. ex) applinks:your.web.site
- Warning: when write applinks prefix, do not add https:// prefix. ex) applinks:your.web.sit
- do not add / at the end of the url. ex) applinks:your.web.site
Usage
final _appLinks = AppLinks(); // AppLinks is singleton
// Subscribe to all events (initial link and further)
_appLinks.uriLinkStream.listen((uri) {
// Do something (navigation, ...)
});
Libraries
- main
- util/_/initial_app/build_app_widget/build_material_app/_
- util/_/initial_app/build_app_widget/build_material_app/app_links_module/_
- util/_/initial_app/build_app_widget/build_my_app/_
- util/_/initial_app/build_app_widget/build_my_app/app_links_module/_
- util/_/initial_app/build_app_widget/build_run_app/_
- util/_/initial_app/build_app_widget/build_run_app/app_links_module/_
- util/_/initial_app/ready_functions/after_material_app/_
- util/_/initial_app/ready_functions/after_material_app/app_links_module/_
- util/_/initial_app/ready_functions/before_material_app/_
- util/_/initial_app/ready_functions/before_material_app/app_links_module/_
- util/_/initial_app/ready_functions/before_run_app/_
- util/_/initial_app/ready_functions/before_run_app/app_links_module/_
- util/_/initial_app/ready_functions/before_run_app/widgets_binding/_
- util/_/module_functions/app_links_module/_
- util/_/shared_params/_/go_router
- util/_/shared_params/_/material_app
- util/_/shared_params/_/start_app_params
- util/_/shared_params/_/widgets_binding
- util/_/shared_params/app_links_module/_
- util/config/_/global_imports
- util/config/_/init_view
- util/config/_/router/_/_
- util/config/app_links_module/_
- util/usage/app_links_module/usage
- util/usage/app_links_module/usage_view