MaikuB / flutter_appauth

A Flutter wrapper for AppAuth iOS and Android SDKs
269 stars 238 forks source link

[flutter_appauth] Fix for logout crash while app is on background #468

Closed JohnKim7 closed 5 months ago

JohnKim7 commented 5 months ago

on Android Ii user does logout and while logging out user closes the browser and go background and come back, the app crashes. It happens because flutter activity waits for intent not to be null, but it is null. We need to add null check on activity result method on Android.

Related issue: https://github.com/MaikuB/flutter_appauth/issues/459#issuecomment-1865485929

JohnKim7 commented 5 months ago

on react native version of app auth wrapper, there is such kind of null check. And as it says it prevents from app crash.

https://github.com/FormidableLabs/react-native-app-auth/pull/352