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

    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