flutter_branch_sdk icon indicating copy to clipboard operation
flutter_branch_sdk copied to clipboard

Android non branch deep link sometimes not available

Open vasa137 opened this issue 10 months ago • 5 comments

Describe the bug When I try to open the app with the non-branch deep link, non_branch_link field sometimes doesn't provide the url I've clicked on.

To Reproduce Steps to reproduce the behavior:

  1. I've clicked on the link with the custom domain: dev-app.operi.rs/home/orders
  2. Branch SDK logged this D/FlutterBranchSDK( 3719): BranchReferralInitListener - params: {"+non_branch_link":"dev-operi-app://open?link_click_id=1304070486333205728","+clicked_branch_link":false,"+is_first_session":false}
  3. listSession method returned this value in the callback

Expected behavior I've expected to get non_branch_link = dev-app.operi.rs/home/orders

Smartphone (Please complete the following information. remove session if not platform):

  • Flutter: version: 3.19.2

  • Package version: 7.3.0

  • OS: Android 14

  • Device: Samsung Galaxy S21 FE

  • Additional context

In some periods of the day - the expect behavior is happening, but mostly it returns dev-operi-app://open?link_click_id=XXX. Also, on Xiaomi I've never received this type of the response - it's always the original link.

vasa137 avatar Apr 09 '24 22:04 vasa137

Hi @vasa137 .

This package calls Branch Native SDK functions on each platform.

The problem reported is not in the Flutter plugin, but in the Native SDK.

Please open an issue in the platform repository:

Or open a support ticket for Branch at the link

RodrigoSMarques avatar Apr 09 '24 22:04 RodrigoSMarques

@RodrigoSMarques i am also having same issue, it is returning open?link_click_id=1304070486333205728. instead of returning non branch uri

How we can handle this?

kalismeras61 avatar Apr 23 '24 06:04 kalismeras61

I think the only option is to Generate the link on the Branch portal - since nonBranch links which are using the same domain you registered on Branch Portal will return this thing....

I reached support - but no luck.

vasa137 avatar Apr 23 '24 09:04 vasa137

I think the only option is to Generate the link on the Branch portal - since nonBranch links which are using the same domain you registered on Branch Portal will return this thing....

I reached support - but no luck.

But i believe it was working fine it is weird. If they are not going to show non branch links, why is there such a parameter...

kalismeras61 avatar Apr 23 '24 09:04 kalismeras61

I believe I have identified the problem. I'm already working on the next version. It will be made available in the next few days.

RodrigoSMarques avatar May 05 '24 12:05 RodrigoSMarques

@RodrigoSMarques any update ?

kalismeras61 avatar May 13 '24 06:05 kalismeras61

@RodrigoSMarques any update ?

Reviewing the documentation, as there will be changes to the init method and the way to activate the test key. It will no longer be possible to configure via code.

RodrigoSMarques avatar May 13 '24 11:05 RodrigoSMarques

@kalismeras61 @vasa137

Version 8.0.0 released.

Take the tests and report the results.

RodrigoSMarques avatar May 17 '24 12:05 RodrigoSMarques

Looks like it's solved in version 8.0.1 - I will monitor it a little bit more - since it was working from time to time before - looks promising until now.

vasa137 avatar May 19 '24 15:05 vasa137