Comments (3)
@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.
@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.
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)
- Provided for backwards compatibility for Capacitor v2 plugins. Capacitor v3 plugins should import the plugin directly. This "Plugins" export is deprecated in v3, and will be removed in v4. HOT 1
- Plugin incompatible with Gradle 8 HOT 10
- Problems with play-services-ads version HOT 7
- Can't generate deep link Error: BranchDeepLinks does not have web implementation HOT 1
- iOS Status 200 error (null) HOT 3
- getLatestReferringParams HOT 2
- Can I use Branch Universal Object?
- Android > Error: Session initialization already happened > No deeplink referringParams HOT 8
- Doc has not been updated to the Capacitor 3 yet HOT 4
- no setup docs for old versions
- iOS Network Request Invalid HOT 3
- Android Fatal Error - "You need to use a Theme.AppCompat theme" HOT 1
- Add support for custom deeplink image HOT 11
- Plugin crashes on ios 12 HOT 2
- Capacitor 4 support HOT 8
- 'scanInt32(representation:)' is only available in iOS 13.0 or newer HOT 5
- upgraded project to capacitor 4, ionic/xcode project will not compile HOT 2
- IOS Build not passing with version 5.0.0 of the plugin HOT 3
- Please update documentation HOT 3
- Make compatible with Capacitor 5 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capacitor-branch-deep-links.