iOS external links or apps that evoke your app

Source: Internet
Author: User

Evoke your own app, in fact, is through the link, about this need to understand the next scheme, and the caller docking the next protocol, here just to explain the next to their own app specified page problem

There are two ways to evoke your own app

First, their app has been started, then to arouse their own app, will go straight Handleopenurl (This method has 3, self-Baidu 3 methods exist period), in this method can be distributed to the designated page, this has nothing to say, focusing on the second situation;

Two. Your app does not start, will go first didfinishlaunchingwithoptions, and then go handleopenurl, if your page has ads, it is likely because after the end of the advertisement, back to Tabbar home

(This is generally the logic), then your distribution to the specified page will be replaced, so the workaround is:

External links evoke Ben App,app did not start this method when
Nsurl *url=[launchoptions Objectforkey:uiapplicationlaunchoptionsurlkey];
if (URL) {//Presence URL link proves to be externally aroused
Self.outsideurl=url;
}

In the didfinishlaunchingwithoptions, write the above method, in order to judge, when the end of the advertisement, can according to the above saved URL to judge do not jump back to the Tabbar homepage (this is our app logic, if others are not, can make their own judgment). You can even jump directly into the online approach.

iOS external links or apps that evoke your app

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.