FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. david
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 2
    • Controversial 0
    • Groups 0

    david

    @david

    2
    Reputation
    2
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    david Unfollow Follow

    Best posts made by david

    • RE: Why doesn't the example flutter demo code from github work on Android?

      Hi @dan,

      Thanks for your response. We are currently using the latest available version of the flutter_appauth package v4.0.1 and still seeing this behaviour. It would be great to see the sample apps reviewed and updated if required. We're currently struggling to get this to work on Android, any help you can give would be greatly appreciated.

      Thanks,

      David

      posted in Q&A
      D
      david
    • RE: Why doesn't the example flutter demo code from github work on Android?

      Hi @dan,

      I think we've found the issue. In the FusionAuth blog post, the appAuthRedirectScheme includes the "://login-callback" part. Removing this seems to fix the issue, and the redirect works correctly.

      The current code in the blog looks like this:

      manifestPlaceholders = [
            'appAuthRedirectScheme': 'com.fusionauth.flutterdemo://login-callback'
          ]
      

      The code could still use a review, though, as there are some other things that are out of date. For example, the above code should use += instead of =, as with later versions of flutter using just = causes an error. See the Android Setup section here https://pub.dev/packages/flutter_appauth for details.

      So the correct, up-to-date code looks like this:

      manifestPlaceholders += [
            'appAuthRedirectScheme': 'com.fusionauth.flutterdemo'
          ]
      

      Thanks,

      David

      posted in Q&A
      D
      david

    Latest posts made by david

    • RE: Why doesn't the example flutter demo code from github work on Android?

      Hi @dan,

      I think we've found the issue. In the FusionAuth blog post, the appAuthRedirectScheme includes the "://login-callback" part. Removing this seems to fix the issue, and the redirect works correctly.

      The current code in the blog looks like this:

      manifestPlaceholders = [
            'appAuthRedirectScheme': 'com.fusionauth.flutterdemo://login-callback'
          ]
      

      The code could still use a review, though, as there are some other things that are out of date. For example, the above code should use += instead of =, as with later versions of flutter using just = causes an error. See the Android Setup section here https://pub.dev/packages/flutter_appauth for details.

      So the correct, up-to-date code looks like this:

      manifestPlaceholders += [
            'appAuthRedirectScheme': 'com.fusionauth.flutterdemo'
          ]
      

      Thanks,

      David

      posted in Q&A
      D
      david
    • RE: Why doesn't the example flutter demo code from github work on Android?

      Hi @dan,

      Thanks for your response. We are currently using the latest available version of the flutter_appauth package v4.0.1 and still seeing this behaviour. It would be great to see the sample apps reviewed and updated if required. We're currently struggling to get this to work on Android, any help you can give would be greatly appreciated.

      Thanks,

      David

      posted in Q&A
      D
      david
    • Why doesn't the example flutter demo code from github work on Android?

      Hi all,

      I've been following the tutorial for using FusionAuth in a flutter app here: https://fusionauth.io/blog/2020/11/23/securing-flutter-oauth

      Using this code works perfectly in iOS, but doesn't work on my Android device (Google Pixel 6, Firefox browser).

      So I tried downloading the sample project from https://github.com/FusionAuth/fusionauth-example-flutter-dart/, and substituting my own values for the FusionAuth domain, etc. Again, this works perfectly in iOS, but on Android I never get redirected back to the app.

      There is some information here https://fusionauth.io/community/forum/topic/602/error-fusionauth-s-login-page-redirecting-issue-on-android/5 about creating an interstitial web page to complete the redirect to the app for Android devices. Is this really required? Or is there some step I'm missing here that will make this work for an Android app directly without needing to set up a special web page?

      Thanks,

      David

      posted in Q&A
      D
      david