Computer Science/Flutter

[Flutter GoogleSignIn] ๊ฐ‘์ž๊ธฐ ๊ตฌ๊ธ€ ๋กœ๊ทธ์ธ์ด ์•ˆ๋œ๋‹ค.. (ํ•ด๊ฒฐ๋ฐฉ๋ฒ• ํฌํ•จ !! )

_cactus 2024. 9. 26. 16:03
๋ฐ˜์‘ํ˜•

 

 

 

Firebase๋ฅผ ์ด์šฉํ•˜์—ฌ ๊ตฌ๊ธ€ ์†Œ์…œ๋กœ๊ทธ์ธ์„ ๊ตฌํ˜„ํ•ด๋†จ๋Š”๋ฐ ๋ฉฐ์น ์ „๋ถ€ํ„ฐ ๊ฐ‘์ž๊ธฐ ๋กœ๊ทธ์ธ์ด ์•ˆ๋œ๋‹ค๋Š”
๋ถˆ๋งŒ์ด ํญ์ฃผํ•˜๊ธฐ ์‹œ์ž‘ํ–ˆ๋‹ค (ํ˜„์žฌ ๊ฐœ๋ฐœ์–ธ์–ด Flutter)

 

.........

 

์—๋Ÿฌ๋Š” ์ด๋Ÿฌํ–ˆ๋‹ค

[GoogleAuthUtil] [GoogleAuthUtil] error status:UNKNOWN with method:getTokenWithDetails

PlatformException(exception, ERROR, null, null)

 

์•„๋‹ˆ ์ฝ”๋“œ ๋ฐ”๊พผ๊ฒƒ๋„ ์—†๋Š”๋ฐ ํ•˜๋ฃจ์•„์นจ์— ๊ฐ‘์ž๊ธฐ ๋‚œ๋ฆฌํ†ต์ด ๋˜์—ˆ๋‹ค...

๊ธ‰ํ•˜๊ฒŒ ๊ฒ€์ƒ‰ํ•ด๋ณด๋ฉด ์•Œ์•„๋ณด๋‹ˆ ๊ฐ™์€ ํ˜„์ƒ์„ ๊ฒช๊ณ  ์žˆ๋Š” ์‚ฌ๋žŒ๋“ค์ด ๋งŽ์•˜๋‹ค.

 

๊ทธ๋Ÿฌ๋˜ ์ค‘ ์•„๋ž˜ ๊นƒํ—™ ์ด์Šˆ์—์„œ ํ•ด๊ฒฐ์ฑ…์„ ์ฐพ์•˜๋‹ค

 

GoogleSignInPlatform.instance.getTokens throws PlatformException(exception, ERROR, null, null) for some users / devices · Issue

What package does this bug report belong to? google_sign_in What target platforms are you seeing this bug on? Android Have you already upgraded your packages? Yes Dependency versions pubspec.lock h...

github.com

 

 

ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์€ ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค โญ๏ธ โญ๏ธ โญ๏ธ

// ๊ธฐ์กด
GoogleSignIn();

// ํ•ด๊ฒฐ๋ฐฉ๋ฒ•
GoogleSignIn(scopes: ['email']);

 

scope์— emailํ•„๋“œ๋ฅผ ์ถ”๊ฐ€ํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

๋ช…ํ™•ํ•œ ์†”๋ฃจ์…˜์€ ์—†๋Š”๋ฐ "์ด๋ ‡๊ฒŒ ํ•ด๋ณด๋‹ˆ ๋์–ด์š”" ๋ผ๋Š” ๊ฐœ๋ฐœ์ž๋“ค์˜ ๊ธ€์„ ๋ณด๊ณ  ๋‚˜๋„ ์ ์šฉํ•ด๋ณด์•˜๋‹ค.

์ •๋ง ๋กœ๊ทธ์ธ ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ์ด ๋˜์—ˆ๋‹ค.

ํ•˜๋งˆํ„ฐ๋ฉด ๋น„์ฆˆ๋‹ˆ์Šค์ ์œผ๋กœ ํฐ ์†์‹ค์„ ๋ณผ๋ป”ํ–ˆ๋‹ค..

 

์•„๋‹ˆ ์ด๋ ‡๊ฒŒ ํฐ ์ด์Šˆ๋ฅผ...... ์šฐ๋ฆฌ๋“คํ•œํ…Œ ์•Œ๋ฆฌ์ง€๋„ ์•Š๊ณ  ๊ทธ๋ƒฅ ๋ฐ”๊พผ๋‹จ ๋ง์ด์•ผ?

๊ฐœ๋ฐœ์ž๋“ค์€ ์ฝ”๋“œ๋ฅผ ๊ฑด๋“œ๋ฆฐ๊ฒŒ ์—†์œผ๋‹ˆ ๊ตฌ๊ธ€์ธก์—์„œ ์ˆ˜์ •ํ•œ๊ฑฐ ๊ฐ™์€๋ฐ ๋„ˆ๋ฌดํ•˜๋‹ค ์ •๋ง.

ํ•œ๋™์•ˆ ์šฐ๋ฆฌ ๊ฐœ๋ฐœํŒ€์€ ํŒจ๋‹‰ ๊ทธ ์ž์ฒด์˜€๋‹ค๊ณ  ใ… 

 

์•„๋ฌดํŠผ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์„ ์ฐพ์•„์„œ ๋‹คํ–‰์ด๋‹ค

์—ฌ๋Ÿฌ๋ถ„๋„ ์‹œ๋„ํ•ด๋ณด์„ธ์š”..!!!!

 

 

 

 

728x90
๋ฐ˜์‘ํ˜•