Skip to content

Commit 71de4d0

Browse files
authored
Open Loop with "Loop://" URLs from other applications (#1897)
* New URL scheme name variable * Skeleton method to handle deep links. * Add switch statement for various deep link options * Remove code for parsing URL path
1 parent 874ecbb commit 71de4d0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Loop.xcconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ LOOP_PROVISIONING_PROFILE_SPECIFIER_WATCHAPP_EXTENSION_RELEASE =
4545
// Min iOS Version [DEFAULT]
4646
IPHONEOS_DEPLOYMENT_TARGET = 15.1
4747

48+
// Base string for opening app via URL [DEFAULT]
49+
URL_SCHEME_NAME = $(MAIN_APP_DISPLAY_NAME)
50+
4851
// Version [DEFAULT]
4952
#include? "Version.xcconfig"
5053

Loop/Info.plist

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@
3131
<key>CFBundleURLTypes</key>
3232
<array>
3333
<dict>
34+
<key>CFBundleTypeRole</key>
35+
<string>Editor</string>
36+
<key>CFBundleURLName</key>
37+
<string>$(MAIN_APP_BUNDLE_IDENTIFIER)</string>
3438
<key>CFBundleURLSchemes</key>
3539
<array>
36-
<string>$(MAIN_APP_BUNDLE_IDENTIFIER)</string>
40+
<string>$(URL_SCHEME_NAME)</string>
3741
</array>
3842
</dict>
3943
</array>

0 commit comments

Comments
 (0)