flutter_appauth icon indicating copy to clipboard operation
flutter_appauth copied to clipboard

PlatformException(null_intent, Failed to authorize: Null intent received, null, null)

Open endritgojanikodelabs opened this issue 3 years ago • 3 comments

final AuthorizationTokenResponse result = await _appAuth.authorizeAndExchangeCode( AuthorizationTokenRequest( _clientId, _redirectUrl, issuer: _discoveryUrl, additionalParameters: {'domain': domain}, ), ); After I login I'm gooing back to the app by redirect url and getting this error: PlatformException(null_intent, Failed to authorize: Null intent received, null, null)

endritgojanikodelabs avatar Oct 28 '21 15:10 endritgojanikodelabs

Please provide steps to reproduce this, preferably via fork of the repo and using the example app. A search across the repo with this error message would indicate that your issue is the first time something like this has been reported so chances are you've misconfigured something. Haven't tried it but what comes to mind is perhaps you have turned on the "Don't keep activities" setting the developer mode options?

MaikuB avatar Nov 02 '21 09:11 MaikuB

I think what you applicationID in Android contain symbol "_" or capital letters.

postflow avatar Dec 05 '21 18:12 postflow

I had just saw this error as well. I resolved it by enabling flutter deep linking (see: https://docs.flutter.dev/development/ui/navigation/deep-linking#enable-deep-linking-on-android), because my redirect URI is not the android package, but a custom (shorter) scheme.

konnic avatar Sep 07 '22 13:09 konnic

I had just saw this error as well. I resolved it by enabling flutter deep linking (see: https://docs.flutter.dev/development/ui/navigation/deep-linking#enable-deep-linking-on-android), because my redirect URI is not the android package, but a custom (shorter) scheme.

We have it turned on for the .MainActivity but the issue is still appearing.

MartinAKovachev avatar Jul 13 '23 09:07 MartinAKovachev