Hello! I am working on a newly upgrader ionic 4 + capacitor app (I was using Ionic 3 and Cordova).
I am using the Cordova-plugin-customurlscheme plugin in order to redirect the user to the app after he/she logged in from a sso page in the browser (will eventually use an in app browser).
I set the custom url scheme to : http://localhost:3000. I did also set the URL_SCHEME variable when I added the plugin.
The url scheme also appears in the Info.plist file. However, when I type localhost:3000 in the browser on my phone, it does not redirect me to the app.
I was wondering if that behaviour was normal at all, or if I needed to show the login page in an in app browser in order to have the customer scheme working.
The plugin entry in the package.json is the following:
"cordova-plugin-customurlscheme": {
"URL_SCHEME": "http://localhost:3000"
}
and here is the setup in my info.plist:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>http://localhost:3000</string>
</array>
</dict>
</array>
I am using the oidc-client nom package for authentication and I did set the redirect url to localhost:3000.