Open atremel opened 2 months ago
Just posting an update - Ionic 6 now requires https by default:
Any updates on this issue? It really blocks us from migrating our native apps to Ionic / Capacitor...
We've got the same issue (with Capacitor 5/6). #5818 is about the same issue but was closed because set as duplicate of #4240 (by mistake to me, because is does not fix the issue at all as said by this comment https://github.com/ionic-team/capacitor/issues/4240#issuecomment-1249304440). Redirecting from an external URL to localhost on Android doesn't work. PR here about the same issue was not considered either: https://github.com/ionic-team/capacitor/pull/5872
Might be related to this one (with Capacitor 6 example) as well: https://github.com/ionic-team/capacitor/issues/7454
Capacitor Version
Latest Dependencies:
@capacitor/cli: 5.7.4 @capacitor/core: 5.7.4 @capacitor/android: 5.7.4 @capacitor/ios: 5.7.4
Installed Dependencies:
@capacitor/cli: 5.7.3 @capacitor/core: 5.7.3 @capacitor/android: 5.7.3 @capacitor/ios: 5.7.3
[success] Android looking great! 👌
Other API Details
Platforms Affected
Current Behavior
The app is redirecting to an external auth service. From there the user is redirected 302 back to https://localhost, where the browser blocks the request saying ERR_CONNECTION_REFUSED:
HTTPS is encouraged: "we would strongly recommend that you change your androidScheme to use https."
capacitor.config.ts looks like this:
Expected Behavior
Redirect to https://localhost is successful.
Project Reproduction
https://github.com/atremel/redir
Additional Information
Real device has this issue, too.