BranchMetrics / cordova-ionic-phonegap-branch-deep-linking-attribution

The Branch Cordova Ionic Phonegap SDK for deep linking and attribution. Branch helps mobile apps grow with deep links / deeplinks that power paid acquisition and re-engagement campaigns, referral programs, content sharing, deep linked emails, smart banners, custom user onboarding, and more.
https://docs.branch.io/apps/cordova-phonegap-ionic/
MIT License
234 stars 144 forks source link

non_branch_link is empty on iOS only #559

Open masimplo opened 5 years ago

masimplo commented 5 years ago

Hi, I am trying to migrate an app from ionic deeplink plugin to branch. For the first few releases I need to support both non branch deeplinks as they are out in the wild and branch links. In android everything works as expected as I handle +non_branch_link for the old links. When the same link is pressed in iOS, the app opens but there is no +non_branch_link field on the payload. In fact it acts exactly as if I opened the app by pressing the app icon and not a link. Branch links work as expected in both platforms.

In xcode logs I do see a log:

Example[14234:2883109] jsonMessageStr = {"status":"success","type":"onAppOpenAttribution","data":{"link":"https:\/\/demo.example.com\/#\/intouch"}}

but from initSession() I only get

{+clicked_branch_link: false, +is_first_session: false}

I did find an old closed issue of something like that happening because of a conflict with the Facebook plugin so here is the list of plugins and versions I am currently using in case it helps:

    "branch-cordova-sdk": "3.1.6",
    "cc.fovea.cordova.purchase": "7.1.1",
    "cordova-android": "6.4.0",
    "cordova-android-firebase-gradle-release": "2.0.0",
    "cordova-android-play-services-gradle-release": "2.0.0",
    "cordova-android-support-gradle-release": "2.0.1",
    "cordova-clipboard": "1.2.1",
    "cordova-fabric-plugin": "1.1.14-dev",
    "cordova-ios": "5.0.0",
    "cordova-launch-review": "3.1.1",
    "cordova-plugin-add-swift-support": "1.7.2",
    "cordova-plugin-app-event": "1.2.1",
    "cordova-plugin-app-preferences": "0.99.3",
    "cordova-plugin-appminimize": "1.0.1",
    "cordova-plugin-appsflyer-sdk": "4.4.13",
    "cordova-plugin-badge": "0.8.8",
    "cordova-plugin-call-number": "1.0.1",
    "cordova-plugin-camera": "4.0.3",
    "cordova-plugin-camera-preview": "0.10.0",
    "cordova-plugin-datepicker": "0.9.3",
    "cordova-plugin-device": "2.0.2",
    "cordova-plugin-facebook4": "4.0.0",
    "cordova-plugin-file": "6.0.1",
    "cordova-plugin-firebase": "2.0.5",
    "cordova-plugin-globalization": "1.11.0",
    "cordova-plugin-google-analytics": "1.8.6",
    "cordova-plugin-google-conversion-tracker": "1.0.1",
    "cordova-plugin-googleplus": "5.3.0",
    "cordova-plugin-inappbrowser": "2.0.2",
    "cordova-plugin-ionic-keyboard": "2.1.3",
    "cordova-plugin-ionic-webview": "1.1.19",
    "cordova-plugin-ios-keychain": "3.0.1",
    "cordova-plugin-local-notification": "0.9.0-beta.3",
    "cordova-plugin-network-information": "2.0.1",
    "cordova-plugin-splashscreen": "5.0.2",
    "cordova-plugin-statusbar": "2.4.2",
    "cordova-plugin-whitelist": "1.3.3",
    "cordova-plugin-x-socialsharing": "5.4.3",
    "cordova-sms-plugin": "1.0.0",
    "cordova-sqlite-storage": "2.6.0",

and here is my config:

        <branch-key value="key_test_example" />
        <uri-scheme value="example" />
        <link-domain value="link.example.com" />
        <link-domain value="app.example.com" />
        <link-domain value="uat-link.example.com" />
        <link-domain value="demo.example.com" />
        <ios-team-release value="V6....B9" />
caleb87 commented 4 years ago

Did you find a fix for this? I have the same issue.