IOS 9 Universal Links General links using the introduction

Source: Internet
Author: User
<span id="Label3"></p><p><p><span style="font-size:16pt;font-family:‘宋体‘, SimSun;">first, General Links introduced</span></p></p><p><p><span style="font-size:12pt;font-family:‘宋体‘, SimSun;">Apple launches a universal link: a convenient way to launch apps via traditional HTTP links, using the same URLs to open websites and apps.</span></p></p><p><p><span style="font-size:12pt;font-family:‘宋体‘, SimSun;">When your app supports universal links, iOS9, users can click on a link to jump to your website and get seamlessly redirected to your installed app without having to go through the Safari browser. If your app doesn't support it, clicking the link will open with Safari.</span></p></p><p><p><span style="font-size:12pt;font-family:‘宋体‘, SimSun;"><br></span></p></p><p><p><span style="font-size:16pt;font-family:‘宋体‘, SimSun;">second, The advantages of universal links</span></p></p><p><p><span style="font-family:‘宋体‘, SimSun;"><span style="font-size:11pt;font-family:STHeitiSC;">generic links are more than custom</span> <span style="font-size:11pt;font-family:Menlo;">URL</span> <span style="font-size:11pt;font-family:STHeitiSC;">links have several particularly prominent benefits, specifically, generic links:</span></span></p></p><p><p><span style="font-family:‘宋体‘, SimSun;"><span style="font-size:11pt;font-family:Wingdings;"></span> <span style="font-size:11pt;font-family:STHeitiSC;color:rgb(255,0,0);">Uniqueness</span> <span style="font-size:11pt;font-family:STHeitiSC;">:</span> <span style="font-size:11pt;font-family:Menlo;"></span> <span style="font-size:11pt;font-family:STHeitiSC;">Generic links cannot be accessed by other applications as compared</span> to custom URL links because</span></p></p><p><p><span style="font-family:‘宋体‘, SimSun;"><span style="font-size:11pt;font-family:STHeitiSC;">they use the standard</span> <span style="font-size:11pt;font-family:Menlo;">HTTP</span> <span style="font-size:11pt;font-family:STHeitiSC;">or</span> <span style="font-size:11pt;font-family:Menlo;">HTTPS</span> <span style="font-size:11pt;font-family:STHeitiSC;">Link to your Website. </span></span></p></p><p><p><span style="font-family:‘宋体‘, SimSun;"><span style="font-size:11pt;font-family:Wingdings;"></span> <span style="font-size:11pt;font-family:STHeitiSC;color:rgb(255,0,0);">Security</span> <span style="font-size:11pt;font-family:STHeitiSC;">: When the user installs the application,</span><span style="font-size:11pt;font-family:Menlo;">IOS</span> <span style="font-size:11pt;font-family:STHeitiSC;">checks that you have uploaded</span> the file to the <span style="font-size:11pt;font-family:Menlo;">Web</span> <span style="font-size:11pt;font-family:STHeitiSC;">server to ensure</span></span></p></p><p><p><span style="font-family:‘宋体‘, SimSun;">your <span style="font-size:11pt;font-family:STHeitiSC;">website allows your app to open</span> the <span style="font-size:11pt;font-family:Menlo;">URL</span> <span style="font-size:11pt;font-family:STHeitiSC;">file, as long as you create and upload the</span></span></p></p><p><p><span style="font-family:‘宋体‘, SimSun;font-size:11pt;">file, then the association between your app and the server is Secure.</span></p></p><p><p><span style="font-family:‘宋体‘, SimSun;"><span style="font-size:11pt;font-family:Wingdings;"></span> <span style="font-size:11pt;font-family:STHeitiSC;color:rgb(255,0,0);">Flexibility</span> <span style="font-size:11pt;font-family:STHeitiSC;">: When your application is not installed, the generic link will still Work. When the user does not</span></span></p></p><p><p><span style="font-family:‘宋体‘, SimSun;">to <span style="font-size:11pt;font-family:STHeitiSC;">Install your application, click on the link and the user will expect</span> to <span style="font-size:11pt;font-family:Menlo;">Safari</span> <span style="font-size:11pt;font-family:STHeitiSC;">in the form of access. </span></span></p></p><p><p><span style="font-family:‘宋体‘, SimSun;"><span style="font-size:11pt;font-family:Wingdings;"></span> <span style="font-size:11pt;font-family:STHeitiSC;color:rgb(255,0,0);">Simplicity</span> <span style="font-size:11pt;font-family:STHeitiSC;">: Universal links can support your website and your app</span></span></p></p><p><p><span style="font-family:‘宋体‘, SimSun;"><span style="font-size:11pt;font-family:Wingdings;"></span> <span style="font-size:11pt;font-family:STHeitiSC;color:rgb(255,0,0);">Private</span> <span style="font-size:11pt;font-family:STHeitiSC;">: Other applications can communicate with your application, regardless of whether or not your app is Installed. </span></span></p></p><p><p><span style="font-family:STHeitiSC;font-size:11pt;"><br></span></p></p><p><p><span style="font-family:STHeitiSC;font-size:11pt;">Traditional Examples:</span><br></p></p><p><span style="font-family:‘宋体‘, SimSun;"><span style="font-size:11pt;font-family:STHeitiSC;">the <span style="font-size:11pt;font-family:STHeitiSC;">traditional password reset process is This:<br>1, you forgot your password and let you click</span></span><span style="font-size:11pt;font-family:Menlo;"><span style="font-size:11pt;font-family:Menlo;">"</span></span><span style="font-size:11pt;font-family:STHeitiSC;"><span style="font-size:11pt;font-family:STHeitiSC;">Forgot Password</span></span><span style="font-size:11pt;font-family:Menlo;"><span style="font-size:11pt;font-family:Menlo;">"</span></span><span style="font-size:11pt;font-family:STHeitiSC;"><span style="font-size:11pt;font-family:STHeitiSC;">button, in the application</span></span><span style="font-size:11pt;font-family:Wingdings;"><span style="font-size:11pt;font-family:Wingdings;">L</span></span><span style="font-size:11pt;font-family:STHeitiSC;"><span style="font-size:11pt;font-family:STHeitiSC;">Enter your email and click Next<br></span></span><span style="font-size:11pt;font-family:Wingdings;"><span style="font-size:11pt;font-family:Wingdings;"></span></span><span style="font-size:11pt;font-family:STHeitiSC;"><span style="font-size:11pt;font-family:STHeitiSC;">2, Please check your email, click the Reset Password link<br></span></span><span style="font-size:11pt;font-family:Wingdings;"><span style="font-size:11pt;font-family:Wingdings;"></span></span><span style="font-size:11pt;font-family:‘楷体‘, ‘楷体_GB2312‘, SimKai;"><span style="font-size:11pt;font-family:‘楷体‘, ‘楷体_GB2312‘, SimKai;">3, The password reset page in Safari opens</span></span><span style="font-size:11pt;font-family:STHeitiSC;"><span style="font-size:11pt;font-family:STHeitiSC;"><br></span></span><span style="font-size:11pt;font-family:Wingdings;"><span style="font-size:11pt;font-family:Wingdings;"></span></span><span style="font-size:11pt;font-family:STHeitiSC;"><span style="font-size:11pt;font-family:STHeitiSC;">4, You enter the new password and save<br></span></span><span style="font-size:11pt;font-family:Wingdings;"><span style="font-size:11pt;font-family:Wingdings;"></span></span><span style="font-size:11pt;font-family:STHeitiSC;"><span style="font-size:11pt;font-family:STHeitiSC;">5. Switch back to the application and sign in using the new password</span></span></span></p><p><p><span style="font-size:11pt;font-family:‘宋体‘, SimSun;"><br></span></p></p><p><p><span style="font-size:11pt;font-family:‘宋体‘, SimSun;">After using the generic link:</span></p></p><p><p><span style="font-size:11pt;font-family:STHeitiSC;">with the generic link, we can remove it completely from the process</span> <span style="font-size:11pt;font-family:Menlo;">Safari</span> <span style="font-size:11pt;font-family:STHeitiSC;">Browser. Now the user can reset the password in the application, allowing the application to reset and automatically log them in when they come in. This is the security of all possible e-mail messages that also have a password reset to confirm Identity. </span></p></p><p><p><span style="font-size:12pt;font-family:‘宋体‘, SimSun;">It can be used to greatly improve the user experience of previously annoying workflows.</span></p></p><p><p><span style="font-family:‘宋体‘, SimSun;"><span style="font-size:12pt;font-family:SimSun;">Video Demo:</span> <span style="font-size:12pt;font-family:SimSun;color:rgb(128,0,128);">http://t.cn/R4pxxB5</span> <span style="font-size:12pt;font-family:SimSun;">(use "universal link" to improve "password reset Function")</span></span></p></p><p><p><br></p></p><p><p><span style="font-family:‘宋体‘, SimSun;">There are four ways to open the effect after using a generic link:<br></span></p></p><p><p><span style="font-family:‘宋体‘, SimSun;font-size:12pt;">First: Click on the link after installing the client (detect if the app is installed, if the app is open directly)</span><br></p></p><p><p><span style="font-size:12pt;font-family:‘宋体‘, SimSun;">The second type: long press the link to select Safari to open</span></p></p><p><p><span style="font-size:12pt;font-family:‘宋体‘, SimSun;">The third type: long press link select Open in XXX</span></p></p><p><p><span style="font-size:12pt;font-family:‘宋体‘, SimSun;">Fourth: Click the link after deleting the app (detect if the app is installed, if it's not installed in Safari open Url)</span></p></p><p><p><br></p></p><p><p><span style="font-size:16pt;font-family:STFangsong;">Iii. key implementation conditions for universal links</span></p></p> <ul class="list-paddingleft-2" style="list-style-type:disc;"> <ul class="list-paddingleft-2" style="list-style-type:disc;"> <li><p><span style="font-size:12pt;font-family:SimSun;">Have a registered domain name</span></p></li> <li><p><span style="font-size:12pt;font-family:SimSun;">Domain name can be accessed via SSL (should be a valid certificate Required)</span></p></li> <li><p><span style="font-size:12pt;font-family:SimSun;">Support for uploading a JSON file to a domain name</span></p></li> <li><p><span style="font-size:12pt;font-family:SimSun;">At least IOS 9 Beta 2 release</span></p></li> <li><p><span style="font-size:12pt;font-family:SimSun;">At least Xcode 7 Beta 2</span></p></li> <li><p><span style="font-size:12pt;font-family:SimSun;">Requires Real-computer testing, Simulator does not support universal links</span></p></li> <li><p><span style="font-size:12pt;font-family:SimSun;">Web server needs to support https, the client needs to advertise HTTPS access, and does not support</span> <span style="font-family:SimSun;font-size:12pt;">any redirect</span></p></li> </ul> </ul><p><p><br></p></p><p><p><span style="font-size:16pt;font-family:STFangsong;">Iv. General Link Implementation steps</span></p></p><p><p><br></p></p><p><p><span style="font-size:12pt;font-family:STFangsong;color:rgb(100%,0%,0%);">1. Open the associated Domains domain:</span></p></p><p><p><span style="font-family:STFangsong;font-size:12pt;">Go to apple Apple Developer---Member center-certificates, Identifiers & Profiles–identifiers-app ids–edit and turn on hook ASSOC iated Domains after Saving.</span><br></p></p><p><p><span style="font-size:12pt;font-family:STFangsong;">650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M00/79/8D/wKioL1aUntixyjoQAACkJBawYLA561.png "title=" 1.png " alt= "wkiol1auntixyjoqaackjbawyla561.png"/></span></p></p><p><p><span style="color:rgb(255,0,0);font-family:STFangsong;font-size:12pt;">2, Add associated Domains domain:</span><br></p></p><p><p><span style="font-family:SimSun;font-size:12pt;">Description: your APP domain name must be applinks: pre-set it: also add some subdomains and extensions you might have (www.domain.com, news.domain.com, etc.).</span></p></p><p><p><span style="font-size:12pt;font-family:SimSun;">Function: after configuration your APP will automatically request a special JSON file from your domain Apple-app-site-association. When you start the APP for the first time, it will download the file from Https://domain.com/apple-app-site-association.</span></p></p><p><p><span style="font-family:SimSun;font-size:12pt;">Action: Project Targets->capabilities->associated Domains</span></p></p><p style="text-align:center;"><p style="text-align:center;">650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M01/79/8D/wKioL1aUnxmQmwMwAADmz-ozCd0626.png "title=" 2.png " alt= "wkiol1aunxmqmwmwaadmz-ozcd0626.png"/></p></p><p><p><br></p></p><p><p><span style="font-size:12pt;font-family:STFangsong;color:rgb(100%,0%,0%);">3. Upload the apple-app-site-association file to the root directory of the Server:</span></p></p><p><p><br></p></p><p><p>Precautions (1)</p></p><p><p><span style="font-size:12pt;font-family:SimSun;">1, The paths path is case-sensitive<br>2, paths content can clarify which generic links need to be processed and which do not need<br>3, not used: to explicitly indicate a link that is not processed, you can add "not" in</span> <span style="font-family:SimSun;font-size:12pt;">front</span> of the link</p></p><p><p><span style="font-size:12pt;font-family:SimSun;">For example "paths": ["/wwdc/news/", "not/videos/wwdc/2010/*", "/videos/wwdc/201?/*"]</span></p></p><p><p><span style="font-size:12pt;font-family:SimSun;">4, You can use * Clear all pages<br>5, You can also use an explicit URL, such as/wwdc/news/<br>6, can also append * to your URL, for example/videos/wwdc/2015/* can also use * to match any character, use? To match a character that can be used in a path, such as/foo/*/bar/201?/mypage<br></span></p></p><p><p>Precautions (2)</p></p><p><p><span style="font-size:12pt;font-family:SimSun;">1, "appID" component: Teamid + Bundleid Teamid<br>2, Bundleid must be consistent with the APP's Bundleid.<br>3, apple-app-site-association file cannot be suffixed<br>4, the Apple-app-site-association file needs to be uploaded to the Web site root directory<br>5, each representing the application of the dictionary, must contain a AppID and paths, AppID is</span> <span style="font-family:SimSun;font-size:12pt;">Teamid and Bundleid,paths is an array of strings that explicitly support your app</span> <span style="font-family:SimSun;font-size:12pt;">'s generic links and your app does not support Common Connection Content. </span></p></p><p><p><span style="font-family:SimSun;font-size:12pt;">6, The following example</span></p></p><pre class="brush:cpp;toolbar:false"><pre class="brush:cpp;toolbar:false">{"applinks": {"apps": [], "details": {"TBEJCS6FFP.com.domain.App": {"paths": ["*"]}}}</pre></pre><p><p><br></p></p><p><p><span style="font-size:12pt;font-family:STFangsong;color:rgb(100%,0%,0%);">4. Process Generic links in the APP:</span></p></p><p><p><span style="font-size:12pt;font-family:SimSun;">Example:</span></p></p><p><p><span style="font-size:11pt;font-family:STHeitiSC;">in order to</span> <span style="font-size:11pt;font-family:Menlo;">APP</span> <span style="font-size:11pt;font-family:STHeitiSC;">supports universal links in</span> <span style="font-size:11pt;font-family:Menlo;">, </span> <span style="font-size:11pt;font-family:STHeitiSC;">you need</span> to <span style="font-size:11pt;font-family:Menlo;">appdelegate</span> <span style="font-size:11pt;font-family:STHeitiSC;">in the realization</span> <span style="font-size:11pt;font-family:Menlo;">[application (_:continueuseractivity:restorationhandler:)]</span><span style="font-size:11pt;font-family:STHeitiSC;">. </span></p></p><p style="text-align:center;"><p style="text-align:center;">650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M01/79/8F/wKiom1aUn2ey90SoAAE2OLBb4KI250.png "title=" 4.png " alt= "wkiom1aun2ey90soaae2olbb4ki250.png"/></p></p><p><p></p></p><p><p><br></p></p><p><p><span style="font-size:16pt;font-family:STFangsong;">Some references:<br></span><span style="font-size:12pt;font-family:STFangsong;color:rgb(0%,0%,100%);">https://developer.apple.com/ios/download/</span> <span style="font-size:12pt;font-family:STFangsong;">(appledeveloper)</span></p></p><p><p><span style="font-size:12pt;font-family:STFangsong;color:rgb(0%,0%,100%);">http://www.cocoachina.com/ios/20150902/13321.html</span> <span style="font-size:12pt;font-family:STFangsong;">(cocoachina)</span></p></p><p><p><span style="font-size:12pt;font-family:STFangsong;color:rgb(0%,0%,100%);">http://www.jianshu.com/p/c2ca5b5f391f</span> <span style="font-size:12pt;font-family:STFangsong;">(subvertwuxu Pinterest)</span></p></p><p><p><span style="font-size:12pt;font-family:STFangsong;color:rgb(0%,0%,100%);">Http://strivingboy.github.io/blog/2015/09/27/ios9</span> <span style="font-family:STFangsong;font-size:12pt;">(github Blog)</span></p></p><p><p><span style="font-size:12pt;font-family:STFangsong;color:rgb(0%,0%,100%);">http://stackoverflow.com/questions/33391615/ios-9-universal-links-dont-workhttp://www.jackivers.me/blog/ 2015/9/17/list-of-universal-link-ios-9-apps </span> <span style="font-size:12pt;font-family:STFangsong;">(jack blog)</span></p></p><p><p><span style="font-size:12pt;font-family:STFangsong;color:rgb(0%,0%,100%);">http://help.tune.com/marketing-console/ios-universal-links-with-tune/</span></p></p><p><p>What's wrong with you welcome to Add.</p></p><p><p>This article is from the "taste of life" blog, please be sure to keep this source http://pinwei.blog.51cto.com/5452359/1734167</p></p><p><p>IOS 9 Universal Links General links using the introduction</p></p></span>
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.