You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternating between opening our app from the home screen and opening it via a link that I generated (https://bnc.lt/BpSc/6rY8bdZZXr) (note the latest code is not on production so grabbing the production app from the App store won't help here), the following code in JS doesn't necessarily return the latest params. Sometimes when I open the app from my home screen, the latest referring params say that they are from the link and vice versa:
window.Branch.initSession().then(function(params){console.log("The latest params should be: ",params);}
window.Branch.initSession().then(function(){window.Branch.getLatestReferringParams().then(function(params){console.log("The latest params should be: ",params);}}
We call initSession in these places:
deviceReady().then(...);document.addEventListener("resume", ...);onRegister// function that is hit when a new user registers
Many times I receive these params in DeepLinkHandler (which are wrong):
Thanks for the response, @aaustin. I thought the same thing as well, though I was also manually calling into getLatestReferringParams() from the console and seeing the same behavior (well past my initParams call) so I ruled that out, though I'll verify again on my end and update here.
Alternating between opening our app from the home screen and opening it via a link that I generated (https://bnc.lt/BpSc/6rY8bdZZXr) (note the latest code is not on production so grabbing the production app from the App store won't help here), the following code in JS doesn't necessarily return the latest params. Sometimes when I open the app from my home screen, the latest referring params say that they are from the link and vice versa:
We call initSession in these places:
Many times I receive these params in DeepLinkHandler (which are wrong):
and sometimes I receive the proper params for my link, but when I navigate open the app from my iPhone's home screen instead of via a link.
I haven't looked into if the issue happens for getFirstReferringParams().
This is potentially the last issue that is blocking us from deploying to production, so a resolution here would be great.
Thanks.
The text was updated successfully, but these errors were encountered: