K
Kinde7d ago
Fedy

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' ] }
No description
No description
14 Replies
Nathaly Toledo
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?
Fedy
FedyOP7d ago
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?
Nathaly Toledo
Sure thing And also try to rebuild please.
Fedy
FedyOP7d ago
Alright!
Nathaly Toledo
Does it works?
Fedy
FedyOP7d ago
Building and running a release version...
Nathaly Toledo
Okay, sounds good.
Fedy
FedyOP7d ago
Same issue.. Invalid callback URL As a last shot I will try everything from scratch A new Kinde account and a new Flutter app
Nathaly Toledo
Okay, let's give it one more try as you said.
Fedy
FedyOP6d ago
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..
No description
Nathaly Toledo
Hi there, I will pass your case to our engineering team and take a closer look. I will try to update you asap.
Fedy
FedyOP6d ago
Thank you so much for that!
Nathaly Toledo
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.
Fedy
FedyOP23h ago
Hey, Awesome news! thank you so much for pushing that through! Really appreciate the help. Can’t wait for the release!

Did you find this page helpful?