DeepLink usage and source code parsing (instance description), deeplink instance description1. Introduction
DeepLink has the following explanation on its official website:
When a clicked link or programmatic request invokes a web URI intent, the Android system tries each of the following actions, in sequential order, until the request succeeds:1. Open the user's
The so-called deeplink technology is designed to solve the problem that RIA Web applications such as Silverlight (or flash) cannot be indexed by search engines and belongs to the SEO category.
Take the most common enterprise website as an example. There are enterprise profiles (about), product presentations (products), and contact us (aboutus )... if Silverlight/flash is used for the entire site, the default.html page will be embedded with an xap/sw
This article mainly introduces the js method for deeplink (determine whether the app is installed on the mobile phone). If you need it, refer
Code function:
Determine whether an app is installed on a mobile phone or tablet
If it is installed, the app's scheme is called, and the url is passed as a parameter for subsequent operations.
If not installed, go to app store/google play to download the app.
The Code is as follows:
(Function (){
Var openUrl = w
This article mainly introduces the JS method used for Deeplink (to determine whether the phone is installed app), the need for friends can refer to theCode function: To determine whether the mobile phone/tablet install app if installed then call app scheme, pass in URL as parameter, follow up if not installed then jump to app store/google play download app code as follows: (function () {var o Penurl = Window.location.search; try{OpenURL = openurl.subs
Code function:Determine whether an app is installed on a mobile phone or tabletIf it is installed, the app's scheme is called, and the url is passed as a parameter for subsequent operations.If not installed, go to app store/google play to download
Code Features:Determine if your phone/tablet is installed with appIf the installation calls the app scheme, the incoming URL is used as a parameter for subsequent operationsIf not installed, jump to app store/google play download app
Copy Code
of three steps from left to right is the place to set the URL scheme. Figure:At the bottom of the info page there is a URL Types, click on the inside Set URL scheme for deeplink, of course, here you can set any URL scheme as you want.Here, save it and run your app. The app runs up and then presses CMD+SHIFT+H to the app interface. Then open Safari, enter deeplink://in the Address bar, then click the Go but
This article focuses on the deeplink solution in flex2 and flex3 applications, the updated Use of urlkit, And the deeplink solution built in flex3. Refer to previous descriptions.
First, let's talk about the relationship between history management and deeplink In the flex app. First, there is no built-in solution for deeplin
function in the initializephoneapplication function (the default Project template of WP8 already contains the following code.
Let's take a look at the specific code for processing this event:
Therefore, this function will check whether the current navigationmode is reset. If yes, add another navigated event for processing. (as mentioned above, if the program enables fast resume, it will cut out the program and then enter, the preceding code is used to add a navigated event
This customization is for reference only!First Open the Androidmanifest.xmlIn Mainactivity, add the following:ActivityAndroid:name=". Mainactivity"> ... Intent-filter> ActionAndroid:name="Android.intent.action.VIEW"/> Categoryandroid:name= "Android.intent.category.default"/> category android:name=" Android.intent.category.browsable "/> data android:scheme=" Com.example.androidtestintent-filter>ACTIVITY> where the data tag Android:scheme is used to specify the protocol, something like H
explain the implementation issues based on the actual scenario. I will discuss the following two situations:
1. The program does not have secondtile, that is, the user can only start the program through applist and maintile.
2. The program has secondtile, which is short for deeplink. That is, you can directly access the non-mainpage interface through the portal.
(1) In the simplest scenario, the program does not have secondtile.
A. Princ
to provide interface to external JS, call the browser music player mid, as well as some commonly used anti-refresh, prevent mouse wheel interference. Of course, Deeplink is indispensable.-Fan, ring, dashed-Arithmetic (string analysis)FP10 Limited-beep music, variable speed playback
Maybe in the use, Ghostcat still need some cost (at least you need to know where each function is), but it is worthwhile, some problems you may not meet Now, may also be
1.Universal Link
Understand that Apple officially supports Deeplink.
2. Start the app by clicking on the HTTP link
Web iOS application in support of universal link, when the user clicks on the characteristics of the link will start their own application
app has been installed under the premise of the direct launch of the app and then reality link content
app without installation: Continue to display linked content on the web
The realization method o
Android deep link and custom protocol !, Androiddeep
This custom is for reference only!
First open androidManifest. xml
Add the following content to MainActivity:
In the data tag, android: scheme is used to specify the protocol, something similar to http. Here we specify com. example. androidtest,This is a custom protocol, which is specified to avoid conflicts with other applications.We can also use android: host to specify the domain name, android: port to specify the port, android: path to spe
1.Universal LinkUnderstand that Apple's official support for Deeplink is fine.2. Launch the app by clicking on the HTTP linkWeb?ios application in support of universal link, when users click on the characteristics of the link will start their own application? App has been installed under the premise: directly launch the app and then the real link content? The app is not installed: The link content continues to appear on the webHow to implement 3.Unive
: Same, package management tool.Swiftlint: A pilot tool for checking the Swift programming style and conventions.OtherTswechat: Imitation Wechat .Flappyswift: flappy bird The swift implementation of the game.OcrSWIFTOCR:OCR Image recognition Library.AsynchronousPromisekit: It is easy to use with the ability to provide powerful asynchronous IOS development.Async: Syntax sugar for asynchronous distribution of GCD.KVOObservable-swift: a library for KVO.PermissionPermissionscope: Unified license Man
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.