cordova-ionic-phonegap-branch-deep-linking-attribution: Branch Deep Linking not working in Android
Cordova: v6.1.1
Plugin Version: 2.6.14
In Android app, every time I click a deep link, it always return me the following object:
{ "+clicked_branch_link": false, "+is_first_session": false }
Very sometime it works, but 90% of the time it does not work. Although it opens the app correctly, but due to inappropriate data, the right functionality cannot be achieved.
Can you please help me with this?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 6
- Comments: 17 (5 by maintainers)
Commits related to this issue
- fix: fixes #384 by referencing the Android SDK jar instead of gradle version — committed to BranchMetrics/cordova-ionic-phonegap-branch-deep-linking-attribution by ethanneff 7 years ago
Hello again,
Thank you all for reporting the issue.
We have narrowed the problem to our Android SDK v2.13.0. This was released 4 days ago (https://github.com/BranchMetrics/android-branch-deep-linking/releases). As long as you have not pushed a version of your app to the Google Play Store in the last 4 days, your users have not been affected.
If you have pushed a new version of your app to the Google Play Store, can you please:
/plugins/branch-cordova-sdk/build.gradlecompile 'io.branch.sdk.android:library:2+'compile 'io.branch.sdk.android:library:2.12.2'cordova platform rm android && cordova platform add androidas well)Furthermore, we will push a hotfix to the Branch Cordova SDK later today to mitigate this issue even further.
Again, I apologize for any inconvenience this has caused.
Hey guys - Thanks for letting us know about this issue. I’ve escalated it to engineering internally and we’re looking into it. We believe it’s related to a recent release on the core Android SDK that is not playing nice with Cordova. We’ll keep you updated in this thread.
This was an issue with Android SDK version 2.13.0 . We have opened a PR https://github.com/BranchMetrics/android-branch-deep-linking/pull/497 for this issue. Will be releasing shortly after QA pass
I have updated the Branch Cordova SDK to downgrade the underlying Android SDK to the stable
2.12.2.If you have not changed your
/plugins/branch-cordova-sdk/build.gradlefile, you can update your Cordova Branch SDK to2.6.16to fix this issue. You can use this guide to update your Cordova Branch SDK.We are still working on making the latest Android Cordova SDK (2.13.0) compatible with the Branch Cordova SDK. This will probably take a couple of days. In the meantime, the suggested solutions in this thread should fix your issues.
Thank you,
+1 please help , I am getting the same error
<intent-filter android:name="io.branch.sdk.UriScheme">-<action_ android:name="android.intent.action.VIEW"/>-<category android:name="android.intent.category.DEFAULT"/>-<category android:name="android.intent.category.BROWSABLE"/>-<data android:scheme="appName"/></intent-filter><intent-filter android:name="io.branch.sdk.AppLink" android:autoVerify="true">-<action android:name="android.intent.action.VIEW"/>-<category android:name="android.intent.category.DEFAULT"/>-<category android:name="android.intent.category.BROWSABLE"/>-<data android:host="appName.app.link" android:scheme="https"/>-<data android:host="appName-alternate.link" android:scheme="https"/></intent-filter>Here is my android manifest.xml file.