Hi you all!
I’m facing with a rare issue when trying to redirect once I succesfully login in my app.
I’m working with Ionic Capacitor (v6) and Angular (v17) and I’m consumming the login endpoint trought Salesforce platform. It sends me a redirect uri “https://localhost:3000/callback” and I receive this error when I try to navigate:
I set the IOS scheme to “https” in capacitor.config.ts because the default one is not allowed for the system.
Could you help me with this?
Thank you in advance
The scheme on iOS cannot be http
or https
. The default is capacitor://
. This is mentioned here under server.iosScheme
.
You probably need to use a Deep Link.
Hi @twestrick.
Thanks for your response. We removed the scheme because the problem is different as we tought. Our enpoint receive a 303 response with a redirect URI. As we could verify, IOS check if redirection URI works or not, in opposite to Android. Apparently Salesforce force us to send a redirection even if we don’t need that redirection point. So the solution in our case would be to make a silly endpoint whose our app could access.
Anyway, thank you again.