Authentication on Android devices not working properly
After setting up Kinde sdk for my flutter app, i'm getting this on my android device whenever i try to hit the login button:
Invalid Callback URL
Looks like the allowed callback URLs in your Kinde application don't include the one below:
You provided: com.example.deploy_test://kinde_callback
You can find attached my .env file and my Kinde admin panel configurations
here is my build.gradle config:
defaultConfig {
applicationId "com.example.deploy_test"
minSdkVersion 21
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
manifestPlaceholders += [
'appAuthRedirectScheme': 'com.example.deploy_test'
]
}


14 Replies
Hi there,
I don't think it's a coding issue. Could you try to remove and cache? Or even try to create a new test application?
Did you create your Flutter application as a Front and Mobile app when you created it?
I have created it as a Front and Mobile app, I even created another Kinde account and a new Flutter app and still face the same issue
Can you give me few minutes to remove cache and test again?
Sure thing
And also try to rebuild please.
Alright!
Does it works?
Building and running a release version...
Okay, sounds good.
Same issue.. Invalid callback URL
As a last shot I will try everything from scratch
A new Kinde account and a new Flutter app
Okay, let's give it one more try as you said.
Always getting the same invalid callback url issue!
I tried to print my .env file content:
=== KINDE CONFIGURATION ===
I/flutter (20636): Domain: https://testfedy.kinde.com
I/flutter (20636): Client ID: ae4d68d4e29c4f9d97f0b3b38a78a095
I/flutter (20636): Login URI: com.example.final_test_app://kinde_callback
I/flutter (20636): Logout URI: com.example.final_test_app://kinde_logoutcallback
And attached my Kinde configuration..
Hi there,
I will pass your case to our engineering team and take a closer look.
I will try to update you asap.
Thank you so much for that!
Hey there,
Great news! We've raised a PR for the new Flutter SDK. This will resolve your error. I will notify you once it’s released and goes live.
Hey,
Awesome news! thank you so much for pushing that through! Really appreciate the help. Can’t wait for the release!