-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to avoid handling a deep link twice on cordova android application? #358
Comments
Hello, It looks like you have 2 versions of Branch installed:
|
Thank you for the response. I really appreciate that. Also, I tried with the latest version of branch sdk version 2.6.0 and modified the in config.xml
But cordova build android is throwing an error: Error: BRANCH SDK: Invalid "id" or "ios-CFBundleIdentifier" in in your config.xml. Docs https://goo.gl/GijGKP. Please let me know if i have missed anything. |
I have modified the config.xml to add the latest sdk. |
Hello hello, Unfortunately, Branch no longer supports installing the SDK from the CLI:
This is a remnant of our old our SDK (
|
The error you are receiving is because Android does not accept If you are reliant on a <widget ios-CFBundleIdentifier="com.eneff.branch.cordovatestbedios" android-packageName="com.eneff.branch.cordovatestbedandroid" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> Thanks, |
Hi ethan, Thanks for your response, The main issue I'm facing in this case is, initsession gets called twice , once on deviceready and in on resume when my application request access permission for the first time .And when the initsession gets called in on resume, the result data is empty Below are the scenarions in which im facing issue: Scenario 1: Calling Branch.InitSession in OnResume call back function. Installed the app for the first time. (Did not open the app) Scenario 2: If i remove the Branch.InitSession in OnResume call back fucntion. Installed the app. Can you please let me know how to handle such a scenario, let me know if i need to publish any further information which might help you in finding if i am implementing it in wrong way. Thanks & Regards, |
Hello, Thank you for bringing this to my attention. Yes, the Whenever your Branch.initSession(function(data) {
if (data['+clicked_branch_link']) {
// read deep link data on click
alert('Deep Link Data: ' + JSON.stringify(data));
}
}); Let me know if this fixes your issues and I'll update the readme guide. Thanks, |
Hi,
I am facing an issue with regards to branch io deep linking.
Environment: I am using
Android Marshmallow SDK, platform: 25
Cordova 7.0.1 and
Branch SDK
"io.branch.sdk": "~2.2.3"
"branch-cordova-sdk": "^2.2.5",
Below are the scenarions in which im facing issue:
Scenario 1: Calling Branch.InitSession in OnResume call back function.
Failed case:
Steps:
a) In the OnDeviceReady call back function.
b) In the OnResume Function ( This is because, since my app is opening for the first time, it request the user for permission, which pauses the application and resumes when user deny's/ approves the permission calling the onresume method).
Scenario 2: If i remove the Branch.InitSession in OnResume call back fucntion.
Success case: The above scenario works well, if remove the InitSession in OnResume function
Failed case:
Can you please let me know how to handle such a scenario, let me know if i need to publish any further information which might help you in finding if i am implementing it in wrong way.
Thanks & Regards,
Jyothi.
The text was updated successfully, but these errors were encountered: