Unmatched Route
Hi im using expo and am getting an unamtched route page could not be found go back gac-lawyer://192.168.0.4:8082/kinde_callback sitemap. This is only occuring on my Android device and works fine on IOS.
When im loggin in im constantly being redirect to this page.
8 Replies
It its only affecting Android, this is often causes by case sensitivity in the file names as Android is case sensitive while iOS isn't. Can you make sure the casing is correct in any configuration?
Hi, everything seems to be configured properly. Haave beeen trying to fix this issue for the past week but still not fixed
Can i maybe create a route in my app router called kinde_callback?
will that maybe fix the issue
@Daniel_Kinde
@Admin anyone can explain please as i have been stuck since last week on this
@Anthony Z Are you able to share a minimal repo for me to look at ?
the fix is this for anoyne which might have the same problem and sees this post
You need to set the callback url to existing screen in your application. For example if you use the new expo router and one of the screen you have is dashboard.tsx, your callback could be gac-laywer://dashboard. This is also a must if you want to deploy your application to apple/google stores.
Also, for Android you need to add the additional config in app.config.ts like following, where the host is your callback page
android: {
intentFilters: [
{
action: 'VIEW',
data: {
scheme: 'gac-lawyer',
host: 'login',
},
category: ['BROWSABLE', 'DEFAULT'],
},
],
]
Hi @Anthony Z and @chef for the solution here.
Is this something we should be improving on our docs?
Is this something we should be improving on our docs?
no @Daniel_Kinde i managed to fix the issue. Skipped a crucial part from the docs. Thanks