K
Kinde7mo 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
15 Replies
Koosha-Kinde
Koosha-Kinde7mo ago
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
FedyOP7mo 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?
Koosha-Kinde
Koosha-Kinde7mo ago
Sure thing And also try to rebuild please.
Fedy
FedyOP7mo ago
Alright!
Koosha-Kinde
Koosha-Kinde7mo ago
Does it works?
Fedy
FedyOP7mo ago
Building and running a release version...
Koosha-Kinde
Koosha-Kinde7mo ago
Okay, sounds good.
Fedy
FedyOP7mo 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
Koosha-Kinde
Koosha-Kinde7mo ago
Okay, let's give it one more try as you said.
Fedy
FedyOP7mo 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
Koosha-Kinde
Koosha-Kinde7mo ago
Hi there, I will pass your case to our engineering team and take a closer look. I will try to update you asap.
Fedy
FedyOP7mo ago
Thank you so much for that!
Koosha-Kinde
Koosha-Kinde6mo ago
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
FedyOP6mo ago
Hey, Awesome news! thank you so much for pushing that through! Really appreciate the help. Can’t wait for the release! Hello, any news about the new Flutter SDK?
Koosha-Kinde
Koosha-Kinde6mo ago
Hey there, Not yet, I will make sure to get back to you once it's released.

Did you find this page helpful?