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

Deeplink in resume doesn't pass data (android resume state) #656

Closed florencesuller closed 4 years ago

stefdelec commented 4 years ago

We have the same problem here. We could not resolve it. We have contacted Branchio team in january.

ArnaudPrigent commented 4 years ago

Same problem here !

stefdelec commented 4 years ago

Can we have support as it is a big problem for our users?

stefdelec commented 4 years ago

It seems that a lot of people have the same issue:

  1. https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking-attribution/issues/656
  2. https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking-attribution/issues/564
adrianyg7 commented 4 years ago

Hi @florencesuller and @stefdelec could you please provide more information about this issue?

I have done the following:

Using Node 10.15, Cordova 9.0, branch-cordova-sdk 4.1.3, cordova-android 8.1 Created a new Cordova project Added Android platform and branch-cordova-sdk plugin Built in Android Studio and run Created a deeplink Opened Chrome containing the deeplink and clicked on it App opens with resume event and contains deeplink data

Could you please provide information about your build environment? Node version, Cordova version, branch-cordova-sdk version, cordova-android version, Android SDK version, other installed plugins.

stefdelec commented 4 years ago

Cordova plugins:

 "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {
        "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
      },
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-android-permissions": {},
      "cordova-plugin-nativestorage": {},
      "cordova-plugin-secure-storage-echo": {},
      "cordova-plugin-qrscanner": {},
      "cordova-plugin-add-swift-support": {},
      "cordova-ios-plugin-no-export-compliance": {},
      "branch-cordova-sdk": {},
      "com-sarriaroman-photoviewer": {},
      "cordova-plugin-fingerprint-aio": {
        "FACEID_USAGE_DESCRIPTION": " "
      },
      "cordova-plugin-inappbrowser": {},
      "cordova-plugin-x-socialsharing": {
        "ANDROID_SUPPORT_V4_VERSION": "24.1.1+"
      },
      "cordova-plugin-app-version": {},
      "cordova-clipboard": {},
      "com.batch.cordova": {
        "BATCHSDK_ENABLE_ANDROID_BUILTIN_FIREBASE_CONFIG": "true"
      },
      "cordova-custom-config": {},
      "cordova-plugin-appavailability": {},
      "phonegap-nfc": {}
    },
vukhacbiet commented 4 years ago

Same issue, I need the help

jeremyjackson89 commented 4 years ago

If anyone still runs into this and you're going back and forth between a test and live environments, remember to update the config.xml file to have the correct branch-key and link-domain for your current target environment. That's the incredibly basic thing I was forgetting to do.

Test

<branch-key value="key_test_1234567" />
<link-domain value="abc123.test-app.link" />
<link-domain value="abc123-alternate.test-app.link" />

Live

<branch-key value="key_live_1234567" />
<link-domain value="abc123.app.link" />
<link-domain value="abc123-alternate.app.link" />

Hope this helps :)