Git Product home page Git Product logo

Comments (3)

DanProudfoot avatar DanProudfoot commented on June 11, 2024 1

@KirstenStake Hi - I didn't find an answer entirely within the confines of Branch, but what I have done since that seems to be working is store the deeplink timestamp in Capacitor Storage and then compare the stored version with the next time the event is called. If it's the same, just ignore it.

from capacitor-branch-deep-links.

KirstenStake avatar KirstenStake commented on June 11, 2024

@DanProudfoot did you manage to figure this one out? seeing the same behvaviour in android.

  • user clicks branch link
  • app opens
  • gets redirected in app
  • user closes app (background mode) and uses other apps etc on phone
  • opens app again and user gets redirected back with the initial branch logic (but didn't press a branch link this time)

When looking at the app branch link data from "init" function it still has the "clickedBranchLink" as true for the visits after the initial branch link click visit.

from capacitor-branch-deep-links.

tomskopek avatar tomskopek commented on June 11, 2024

I've noticed that the second time, the subscribe listener adds this param: '+rn_cached_initial_event'. You can return early if it's present.

This does not seem to be the case on getInitialUrl.

from capacitor-branch-deep-links.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.