I also have tried to add the exact path into Keycloak Redirect Uri in the UI as com.appname://hostname/home/map. Still the same issue.
Also, npx uri-scheme open "com.appname://hostname/home/map" --android works well. So, I guess there isn't anything wrong with the navigation.
Expected behavior
I expected the the login screen in the inappbrowser and after login it should close the browser and redirect the app to the redirectUri. Instead, the minute the inappbrowser is open,it shows the invalid parameter: redirect_uri error.
BTW, it works perfectly fine in our web app with the same keycloak config.
Screenshots
Smartphone
Device: Android Emulator, Pixel 4 API 31.
OS:
Version
Additional context
I have checked every url I can find in the issues and in the google. I have also checked the example folder. No Luck.
Describe the bug
Cannot login and redirect to the app gracefully. It shows the following error:
To Reproduce
keycloak.js
App.js
Keycloak Redirect URI Config:
AndroidManifest.xml:
I also have tried to add the exact path into Keycloak Redirect Uri in the UI as
com.appname://hostname/home/map
. Still the same issue.Also,
npx uri-scheme open "com.appname://hostname/home/map" --android
works well. So, I guess there isn't anything wrong with the navigation.Expected behavior
I expected the the login screen in the inappbrowser and after login it should close the browser and redirect the app to the redirectUri. Instead, the minute the inappbrowser is open,it shows the invalid parameter: redirect_uri error.
BTW, it works perfectly fine in our web app with the same keycloak config.
Screenshots
Smartphone
Additional context
I have checked every url I can find in the issues and in the google. I have also checked the
example
folder. No Luck.