Search
๐Ÿช•

Flutter android sign in with apple

์ƒ์„ฑ์ผ
2022/05/21 12:44
ํƒœ๊ทธ
Flutter
Firebase
์†์„ฑ
์†์„ฑ 1
์†์„ฑ 2
2022/05/21 13:07

Dependency

1. Firebase ์ธ์ฆ ์„ค์ •

์œ„ Callback URL ๋ฉ”๋ชจํ•ด๋‘๊ธฐ

2. Apple ๊ฐœ๋ฐœ์ž ์„ผํ„ฐ ์„ค์ •

์œ„ ์„ค์ •์„ ๋”ฐ๋ผ ์ง„ํ–‰ํ•˜๋˜
์œ„ Identifier ๋ฉ”๋ชจํ•ด๋‘๊ธฐ
โ€œConfigiureโ€๋กœ ์ง„์ž…ํ•ด, 1๋ฒˆ ๊ณผ์ •์—์„œ ๋ฐ›์€ callback URL๊ณผ ๊ทธ ๋„๋ฉ”์ธ์„ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

3. ๋‹ค์‹œ Firebase ์ธ์ฆ ์„ค์ •

2๋ฒˆ์—์„œ ์ƒ์„ฑ๋œ โ€œIdentifierโ€ ๋ฅผ Firebase Apple ๋กœ๊ทธ์ธ ์„ค์ •์—์„œ ์„œ๋น„์Šค ID๋กœ ๋„ฃ์Šต๋‹ˆ๋‹ค.

4. AndroidManifest.xml

<activity android:name="com.aboutyou.dart_packages.sign_in_with_apple.SignInWithAppleCallback" android:exported="true" > <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="signinwithapple" /> <data android:path="callback" /> </intent-filter> </activity>
XML
๋ณต์‚ฌ
AndroidManifest.xml ์— ์œ„ ์„ค์ • ์ถ”๊ฐ€