Creating an app
Creating a new app¶
In order to start setting up our app to use Branch links, we need to create a Branch app to use with your Xcode project. To do this, head over to the Branch Dashboard and click the app selector in the top left corner:
- Select
Create new app
- Name it something descriptive
Setting up link redirects¶
With a new Branch app, we need to specify where your future users will be sent. To do this, head over to the Link Settings
tab, and:
- Select
I have an iOS App
- Enter an iOS redirect URL (eg
http://branch.io
) - Add redirects for Android and Desktop (eg
http://branch.io
) - Click save
Adding the Branch key to Xcode¶
Finally, before moving forward, we need to add the key of the newly created Branch app to your Xcode project. Head over to the Account Settings page of your dashboard, and copy the Branch Key
. Switch back to Xcode and:
- Open the
info.plist
file - Hover over the last entry, and click the
+
button - Name the new entry
branch_key
and use the drop-down menu on the right to set the type todictionary
- Use the small carat on the left edge of the row to expand the
branch_key
entry - Hover over the
branch_key
entry, and click the+
symbol again - Name the new entry
live
, and set the value to the Branch key you copied earlier.