Skip to content
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

Capacitor BranchDeepLinks.addListener is not working as a listener #127

Open
GiannisS opened this issue Dec 21, 2023 · 4 comments
Open

Capacitor BranchDeepLinks.addListener is not working as a listener #127

GiannisS opened this issue Dec 21, 2023 · 4 comments
Labels
bug Something isn't working needs-triage

Comments

@GiannisS
Copy link

GiannisS commented Dec 21, 2023

Describe the bug

The addListener function is not working as a listener meaning that if new refferingParams arrive to App you will have to call again the BranchDeepLinks.addListener function in order to read them.

Steps to reproduce

Just initialize

        BranchDeepLinks.addListener("init", (event: BranchInitEvent) => {
          console.log("Deep Link branch Data:", event.referringParams);
        });

With your app opened and initialized just try Browser.open({url: "your branch url"}). The listener will never detect the new data.

Expected behavior

The addListener function should detect new data without the need of calling the function everytime you know new data will arrive. Otherwise the function (addListener) is missnamed and missleading.

SDK Version

7.0.0

Make and Model

Any android

OS

Android 13

Additional Information/Context

No response

@GiannisS GiannisS added bug Something isn't working needs-triage labels Dec 21, 2023
Copy link

This issue has been automatically marked as stale due to inactivity for 60 days. If this issue is still relevant, please respond with any updates or this issue will be closed in 7 days. If you believe this is a mistake, please comment to let us know. Thank you for your contributions.

@marshall86
Copy link

what's the status of this bug? Any updates?

@metinjakupi
Copy link

Bump

@metinjakupi
Copy link

@GiannisS did you find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

No branches or pull requests

3 participants