New features for IOS 9 Universal Links

Source: Internet
Author: User
Tags ssl certificate

What is universal Links: (universal link) a convenient way to launch apps via traditional HTTP links, using the same URLs to open web page and app.

1th, link open URL as the name implies

2nd, the link to open the app, usually we will use the URL scheme (schema) is in the info can be configured in a few target requirements of the application of a schema (key keys unique app identity), and then opened using the OpenUrl method. This opens with a link.

Reason: (1)schema mode is easy to expose user data: If someone gets the schema using appdelegate inside Canopenurl: Method can know the user mobile phone inside are installed what, I do not know why so many people will trickery used in the Outside the door crookedness, of course, Apple abhorrence, in the iOS9 inside the policy has a limit, can not run code to detect the User app installation usage

(2)schema is easy to repeat: it is likely that the two development teams without the intersection took the same URL scheme name, and then the iphone itself blindfolded, what to do, and then the phone default status without any processing, then the user will not know what to do: "I Did you just click on the button, the cell phone is stuck or is it not responding? "

(3)Universal links can not only solve the above two problems (yes more safe not afraid of information leak someone again test your mobile app list, domain name only), and is a contextual link tightly, you can directly jump to the installed app or jump to download the app or some other link or something.

Service-side operation:

This universal links needs to be handled by a small partner on the service side, registering a domain name, such as http://xxxx.com as our universal link.

(1) First need to purchase SSL certificate, in order to use SSL through GET request access to access to the domain name (and the following JSON)

(2) then configure some services

"Support uploading a JSON file to your domain name": This needs to be in the root directory of the server, add a file named Apple-app-site-association (no suffix) of a file, and then add the following content:

{    "applinks": {        "apps":[],        "Details": [            {                "AppID ":" XXXXXXXX ",                " Paths ": [                    "/videos/\* "                ]            }        ]}    } 

The key is that AppId is the developer account of the Teamid and the app's Bundleid are spelled out for example:

Teamid + "." + Bundleid-spelled string

Customer front-end operations:

Register your app to enable it to handle universal links

To add your app domain name to Xcode's capabilities, you must use "Applinks:" As a prefix to add some subdomains and extensions you might have (www.xxxx.com, tests.xxxx.com, and so on).

Then you can use the target link in Safari to test to see if you can jump to the app, or download the app.

There are similar third parties, using the integrated approach, do not need our domain name problem, only need to provide teamid, and then for us to generate a "short link", put this link in or Safari can be a click to jump the application or prompt to download the app.

And then depending on whether the demand is to open the page or how to handle the method

because of this new feature of iOS9, if you have to support a relatively low version must have a pre-judgment, otherwise it will lead to crash. And it is likely that Apple does not test this problem, your application is on the line, and so the user is affected before the reaction. We have to repack it urgently.

It's all about blood and tears. Experience: Our project uses iOS9 font and then still has a considerable portion of iOS7 user feedback turned on and on. Not a lot of us. Users love the low version is unwilling to upgrade. Then we urgently fix the problem and re-shelves. (Apple didn't approve the low-version system at all.)

Note: Test the real machine, the simulator is not good

New features for IOS 9 Universal Links

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.