Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webview does not close automatically after logging in to microsoft account #2

Closed
ayaanpathan opened this issue Jan 21, 2022 · 1 comment

Comments

@ayaanpathan
Copy link

ayaanpathan commented Jan 21, 2022

Hi,

Thank you for this package.

I am facing an issue where the webview does not close automatically after logging in. It gets stuck and no action is happening on clicking 'Continue' or 'Cancel'

@ayaanpathan ayaanpathan changed the title From where do i get the callback schema? Webview does not close automatically after logging in to microsoft account Jan 21, 2022
@Lukiya
Copy link
Owner

Lukiya commented Jan 21, 2022

Sounds like you didn't register the right callback schema.
Please refer to:
https://pub.dev/packages/url_launcher

Android

<activity android:name="com.linusu.flutter_web_auth.CallbackActivity">
  <intent-filter android:label="flutter_web_auth">
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="YOUR_CALLBACK_SCHEMA" android:host="auth" />
  </intent-filter>
</activity>

iOS

    <key>CFBundleURLTypes</key>
	<array>
		<dict>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>CFBundleURLName</key>
			<string>auth</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>YOUR_CALLBACK_SCHEMA</string>
			</array>
		</dict>
	</array>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants