Skip to content

Commit 90a38b1

Browse files
author
Gabriel Gatzsche
committed
Added additional information.
1 parent ff0b2ca commit 90a38b1

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,30 @@
11
# LSApplicationQueriesSchemes-Working-Example
2-
iOS 9 introduces LSApplicationQueriesSchemes to allow apps to query if other apps are installed. This project provides two sample apps which are querying for each other. To the moment I didn't get this example run. Thus I use these two apps to communicate with Apple and others.
2+
iOS 9 introduces LSApplicationQueriesSchemes to allow apps to query if other apps are installed. This project provides two sample apps TestA and TestB which are querying for each other.
3+
4+
In its info.plist file TestA defines the following URL schemes:
5+
6+
'''
7+
<key>CFBundleURLSchemes</key>
8+
<array>
9+
<string>testA</string>
10+
</array>
11+
'''
12+
13+
TestB wants to check if TestA is installed by calling
14+
15+
'''
16+
BOOL canBeOpened = [[UIApplication sharedApplication]
17+
canOpenURL:[NSURL URLWithString:@"TestA.scheme2://"]];
18+
'''
19+
20+
This is normally not allowed in iOS9. But by adding the following code to TestB's info.plist file, the query will return YES:
21+
22+
'''
23+
<key>LSApplicationQueriesSchemes</key>
24+
<array>
25+
<string>TestA</string>
26+
</array>
27+
'''
28+
29+
30+
~~Test~~

0 commit comments

Comments
 (0)