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
233 stars 145 forks source link

No data passed on deeplink clicked. (Resume state or closed state) #564

Open one-mb-rai opened 5 years ago

one-mb-rai commented 5 years ago

Hi, I have an app in development and before deeplinks were working fine. From past one week it has stopped passing data but app launches.

Data that I get on each launch

{"+clicked_branch_link":false,"+is_first_session":false}

Here is my configuration of system. ionic info Ionic:

ionic (Ionic CLI) : 4.5.0 (/usr/local/lib/node_modules/ionic) Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.1.9

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : android 8.0.0, ios 4.5.5 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, (and 19 other plugins)

System:

Android SDK Tools : 26.1.1 (/Users/amitrai/Library/Android/sdk) ios-deploy : 1.9.4 NodeJS : v9.11.2 (/usr/local/bin/node) npm : 5.6.0 OS : macOS Mojave Xcode : Xcode 9.4.1 Build version 9F2000

Cordova info Node version: v9.11.2

Cordova version: 8.1.1

Plugins:

adobe-mobile-services,apptentive-cordova,branch-cordova-sdk,call-number,cordova-open-native-settings,cordova-plugin-camera,cordova-plugin-crop,cordova-plugin-device,cordova-plugin-file,cordova-plugin-firebase,cordova-plugin-inappbrowser,cordova-plugin-ionic-keyboard,cordova-plugin-ionic-webview,cordova-plugin-network-information,cordova-plugin-privacyscreen,cordova-plugin-screen-orientation,cordova-plugin-sim,cordova-plugin-splashscreen,cordova-plugin-statusbar,cordova-plugin-telerik-imagepicker,cordova-plugin-whitelist,cordova.plugins.diagnostic,es6-promise-plugin,ionic-plugin-deeplinks

Android platform:


The "android" command is deprecated. For manual SDK, AVD, and project management, please use Android Studio. For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager


Running /Users/amitrai/Library/Android/sdk/tools/bin/avdmanager list target

Available Android targets:==============] 100% Fetch remote repository...

id: 1 or "android-23" Name: Android API 23 Type: Platform API level: 23 Revision: 3

id: 2 or "android-24" Name: Android API 24 Type: Platform API level: 24 Revision: 2

id: 3 or "android-25" Name: Android API 25 Type: Platform API level: 25 Revision: 3

id: 4 or "android-26" Name: Android API 26 Type: Platform API level: 26 Revision: 2

id: 5 or "android-27" Name: Android API 27 Type: Platform API level: 27 Revision: 3

id: 6 or "android-28" Name: Android API 28 Type: Platform API level: 28 Revision: 6

iOS platform:

Xcode 9.4.1 Build version 9F2000

epetre commented 5 years ago

I think I have the same issue (tested in Android only). The only semi-useful thing in that data is a link like this one:

branchcordova://open?link_click_id=link-SOMEIDHERE

But all my data is lost. It works fine with Branch links though.

etiennea commented 5 years ago

This is really annoying, it's either branch or deeplinks, not cool

etiennea commented 5 years ago

Ok in my case it was the facebook4 plugin that was the culprit

shawns582 commented 4 years ago

@etiennea I am having this same issue on resume. I also have the facebook4 plugin. How did you fix this? Thanks!

iamqinglong commented 4 years ago

How do you guys solve this ?

I'm just receiving {"+clicked_branch_link":false,"+is_first_session":false} in platform.ready and platform.resume ENV:

ionic 4 "branch-cordova-sdk": "4.1.3" "@ionic-native/branch-io": "^5.26.0"