This have my custom domain -> mywebsite.com
I go to firebase and create a dynamic link, link preview is like this -> https://mywebsite.page.link/rv3P
My deep link URL is -> https://mywebsite.com
Now i have a react app. In there my action code settings are something like this
const actionCodeSettings = {
url: "https://mywebsite.page.link/rv3P",
handleCodeInApp: true,
iOS: {
bundleId: "com.org.mobileapp.mywebsite",
},
android: {
packageName: "com.org.services.mywebsite",
installApp: true,
minimumVersion: "12",
},
dynamicLinkDomain: "mywebsite.page.link",
};
So what’s happening is that upon sending a request to sendSignInLinkToEmail
, i get an email on mail i input. On my mail is the correct link that has the OOB code and everything. Now the firebase docs say to check for the window.location.href
. The main issue is that once i click the link, i get redirected 3-4 times, from mywebsite.page.link
(with oob code) to my firebase domain (with oob code) back to mywebsite.page.link (with oob code) and then finally to https://mywebsite.com
where i lose all the params and it’s just the home page of my app. I need those params to log in my users.
Could it be some react routing issue or is firebase redirecting me to my deeplink for some reason?
I have tried going over the react routes to see if there are any redirections and also gone over the firebase console dynamic link multiple times. All seems good to me. Don’t understand what’s causing this redirection