I have created an endpoint so that when sending email to users they will be able to open the app from the link. I needed this since gmail is removing links that does not contain https.
The endpoint is supposed to redirect to deeplink (appname://test/’.$id) but it does not work with any of the ways I tried below:
tried with header location:
$app_url = "appname://test/'.$id"; header('Location: ' . $app_url);
tried with symfony redirect:
tried with js on php function:
Any idea how could I redirect the user to app once clicked the link from gmail?
Source: Symfony Questions
Was this helpful?
0 / 0