Deep Linking :- A Deeplink much like a traditional hyperlink on a webpage. It is composed of separate elements that make up what is referred to as a Uniform Resource Identifier (URI)/URL Schemes. The URL Schemes contains all the information that, when invoked, launches a mobile application with a specific screen. The URL Schemes Contain "ecommercebrand://" these type of word to redirect from safari to application.
Handling the opening of registered urls within your app
Now that you have ensured that deep linking is working, we need to handle the url used to launch the app. In it’s current state, your app can be launched using a simple url, but it can’t do much beyond that. To do more, we need to override the following function in AppDelegate:
Note that this is not present by default, and needs to be added. This function gets called every time your app is launched using the registered url-scheme. The passed in arguments are:
url: The complete url used to launch the app.
sourceApplication: The bundle ID for the application from which the url was called.
annotation: A property list object that can be used to pass additional info along with the url.
The format of the url is as follows: [scheme]://[host]/[path]
Breaking this down, we get:
scheme: The url scheme tells iOS what app to launch. Note that the url scheme should be registered with the device for it to be able to handle this (this is what we did in the previous section).
host: The host is analogous to a website/server name on the web. You can handle multiple hosts within your app.
path: The path enables you to provide additional information regarding the location within your app.
In general, you would use the host and path parameters to determine what the user intends to do.
The Right contents of this method largely depend on your needs, but for the purpose of this post, we will check the host and then based on the path, load a particular ViewController.
1.What is Delegate & Protocol in iOS? A. Protocol :- 1.A Protocol declares a programmatic interface that any class may choose to implement.Protocol make it possible for two classes that related by inheritance to communicate with each other to accomplish a certain goal. 2.A Protocol defines a blueprint of methods, properties, and other requirements that suit a particular task or piece of functionality. The protocol can then be adopted by a class, structure, or enumeration to provide an actual implementation of those requirements. Any type that satisfies the requirements of a protocol is said to conform to that protocol. There are two varieties of protocol Informal Protocol : Category (Implementations are Optional) Formal Protocol : Extension (Implementations are Optional and required) 1.A formal protocol :- it declares a list of methods that client classes are expected to Implement.Its implementation requir...
At an event in Mobile World Congress in Barcelona, Nokia announced three smartphones powered by Android, a mobile operating system created by Google. The company has launched the phones — Nokia X, Nokia X+ and Nokia XL — just weeks before it is scheduled to close sale of its phone business to Microsoft. Google and Microsoft are competitors in the smartphone market. This has led to speculation that Nokia X phones may not survive for long. Nokia X phones are developed keeping emerging markets like India in mind. In most of these markets, Android dominates — in India, the market share is around 90% — and Nokia hopes to woo consumers with the Android tag attached to its phones. These phones have modest hardware specifications and are likely to be priced between Rs 9,000 and Rs 12,000 in India. The Nokia X is likely to be available in India next month, while the other two phones will be available in Q2, 2014. Nokia is using the open ...
Mac OS X 10.9 (Mavericks) at Cornell The latest Mac operating system, OS X 10.9 (Mavericks) appears to be compatible with many supported services at Cornell, though some vendors have not yet announced Mavericks support for some of their products, for example IBM’s TSM, which is used for EZ-Backup (see below for details). Mac users interested in upgrading will want to carefully [...] Update: Support Extended for Mac OS X 10.6 (Snow Leopard) CIT is temporarily extending support for Mac OS X 10.6 (Snow Leopard) beyond the planned support retirement date of December 31, 2012. This extension will allow time for the preparation and testing of backup and antivirus client packages for Apple’s current operating system, OS X 10.8 (Mountain Lion). When these are complete, users should be [...]
Comments
Post a Comment