Git Product home page Git Product logo

isabella232 / branch-example-deep-linking-branchster-ios Goto Github PK

View Code? Open in Web Editor NEW

This project forked from branchmetrics/branch-example-deep-linking-branchster-ios

0.0 0.0 0.0 80.59 MB

Branch Metrics example application for iOS mobile deep linking / deeplinking - the Branchster app. Branch helps mobile apps grow with deep links / deeplinks that power referral systems, sharing links and invites with full attribution and analytics.

Home Page: https://dev.branch.io/references/ios_sdk/#get-the-demo-app

License: MIT License

Ruby 0.34% Objective-C 74.33% Swift 25.33%

branch-example-deep-linking-branchster-ios's Introduction

Create a personal copy of the Branchsters app for testing!

  1. From the command line:
    • Clone the repo: git clone [email protected]:BranchMetrics/Branch-Example-Deep-Linking-Branchster-iOS.git
    • cd Branch-Example-Deep-Linking-Branchster-iOS/
    • pod install
  2. In Finder open: BranchMonsterFactory.xcworkspace
  3. In Xcode click on the root node of the project: BranchMonsterFactory
  4. Under Targets select BranchMonsterFactory, then the General tab
  5. Change the Bundle Identifier to something unique (for this demo we'll use io.branch.Objective-C.Branchsters)
  6. Change the Team to your Team (it must be a paid Apple Developer Account) and click Fix Issue to generate a new Provisioning Profile
  7. Log in to the Branch dashboard and create a new app from the drop-down menu in the top right cornder
  8. On the Settings, screen copy the Branch key
  9. In the Xcode project's info.plist file, change the branch_key entry to the value of your new Branch key key
  10. Add a new String key to the info.plist file: branch_app_domain
  11. Populate the new branch_app_domain key with the value of the Default domain name field found in the Custom Link Domain section of the dashboard's Link Settings tab
  12. Populate the Branch dashboard with the following values:
    • Always try to open app: Checked
    • I have an iOS App: Checked
    • iOS URL: branchsters:// (from the info.plist file, this is URL Types > URL Schemes > Item 0)
    • Custom URL: (enter a web site here if you haven't published the app to the App Store - http://www.branch.io, for example)
    • Default URL: (any web site will do: http://www.branch.io, for example)

Set up Universal Links

NOTE: these steps will not work if you do not have a paid Apple Developer Account

  1. In the Branchsters.entitlements file, add entries for the new Branch Live and Test link domains. For example:
    • applinks:xxxx.app.link
    • applinks:xxxx.test-app.link
    • applinks:xxxx-alternate.app.link
    • applinks:xxxx-alternate.test-app.link
  2. Run the app and make sure that it launches properly on a device or on a simulator
  3. Select the Branchsters.entitlements file and ensure the BranchMonsterFactory box is checked inside Target Membership
  4. Populate the Branch dashboard with the following values:
  5. Save the settings - you are done!

Test

  1. If the app was installed on the test device already:
    • Delete the app from the device
    • Clear Safari web content, history and cookies (Settings > Safari > Clear History and Website Data)
    • Reset the device's IDFA (Settings > Privacy > Advertising > Reset Advertising Identifier...)
  2. Create a Marketing link from the Branch dashboard
  3. Paste the link into Notes on an iPhone
  4. Tap the link - you will get redirected to the web page
  5. Install the app on the device via Xcode
  6. Tapping on the link should now open the app directly

branch-example-deep-linking-branchster-ios's People

Contributors

aaustin avatar aeromusek avatar ahmednawar avatar amruta-d avatar austinhay avatar bharath31 avatar derrickstaten avatar dwestgate avatar e-b-smith avatar echo-branch avatar igonebnyy avatar jdee avatar jf-branch avatar nidhidixit09 avatar parthkalavadia avatar pbcorriganbranch avatar sarkar avatar shortstuffsushi avatar vikram-singh-branch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.