问题
I am trying to implement the Firebase GitHub Authentication in FLutter with the help of this article: https://medium.com/flutter-community/implementing-firebase-github-authentication-in-flutter-1c49a172c648
The problem is that after successfully logging into GitHub, I get redirected to the URL appname://auth/handler?code=AUTH_CODE
. This redirection is not being caught by my app as I’ve set the deep link configuration in Step 4 & 5 of the article.
I guess I am doing something wrong in the intent-filter
Manifest file, It looks like this:
Look into the data
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="auth"
android:scheme="appname" />
</intent-filter>
Also, I have made separate files for Step 7 & 8 in the article. I have used the Step 7 code on the screen in which I am implementing the Signup functionality with button onPressed and the Step 8 code is in a separate signup widget with other authentication methods.
来源:https://stackoverflow.com/questions/61301801/implementing-firebase-github-authentication-in-flutter