cordova-ionic-phonegap-branch-deep-linking-attribution icon indicating copy to clipboard operation
cordova-ionic-phonegap-branch-deep-linking-attribution copied to clipboard

Android duplicated non_branch_link responses after closing and opening app again

Open geneoes opened this issue 7 years ago • 3 comments

I'm using this plugin for making redirections within one app (A) to another (B) in android, with Ionic 3.

  1. First time I open app A and click on the deeplink, it works fine and I got my app B opened with a +non_branch_link
  2. I close both apps
  3. This time I open the app B directly, but again, I'm getting the same last +non_branch_link (this shouldn't be happening since I opened the app normaly)
  4. If I open directly the app B again, this time there's no `+non_branch_link" (seems it gets cleaned in the second time)

The error is on the third step, for some reason I'm getting the last link I got.

Tested on android versions: 5.1, 7.1 and 8.0 Tested with branch-cordova-sdk plugin versions: 2.6.0 and 3.0.0

Edit: If I uninstall and install again the app B, after step 2, when I open the app directly, it works fine. Maybe it is some cache stuff?

geneoes avatar May 08 '18 17:05 geneoes

Hello!

In a perfect world, +non_branch_link should almost never happen. +clicked_branch_link is the normal path for reading data through a deep link.

Are you using another plugin to deep link? Are you using the same deep link configuration for both app? Are you clicking on Branch deep links or URI Schemes?

There are a lot of places that can go wrong. Typically, it is best to start from a foundation and build from there. My recommendation is to follow the Getting Started and Testing Android guides. Make sure deep linking is working with Branch deep links.

If you are still having issue, I will need more infomation about your configuration, your plugins, and deep links you are clicking. This will allow me to simulate the issue on my end.

Thanks,

ethanneff avatar May 08 '18 17:05 ethanneff

I can't use App Links (android) or Universal Links (iOS), because I need to migrate an app that's already using common deeplinks with URI schemes (example: myappname://mylink) and it supports older android versions like 4.4.4

In that case, is it okay to relay on +non_branch_link? Or how can I get running these older links in older android/ios versions

Thanks

geneoes avatar May 08 '18 17:05 geneoes

@ethanneff any news on this?

Thanks.

geneoes avatar Aug 01 '18 18:08 geneoes