naver login 이 개인이 관리하는 library라서 안 될 수가 있다.
현재 버전에서, 1.7.0 => 1.6.0으로 downgrade할 경우 정상 작동하였다.
https://pub.dev/packages/flutter_naver_login
flutter_naver_login | Flutter Package
A Flutter plugin for using the native Naver Login SDKs on Android and iOS.
pub.dev
![](https://t1.daumcdn.net/keditor/emoticon/friends1/large/014.gif)
또 한가지는 APK를 구웠을 때 안 될 때가 있는데 네이버에서는 실제로 테스트 시에는 로그인이 안되었다가
출시하고 나면 로그인이 될 수 가 있다.
이점은 developer.naver.com 쪽에 확인 해보면 문구가 나와있다.
debug상태에서도 테스를 하려면 developer 계정으로 로그인 하거나, 테스트 계정에 정보를 입력하자!
그래도 안될 때, 예를 들어 아래와 같은 오류가 발생했을 때 ,,
MissingPluginException(No implementation found for method logIn on channel flutter_naver_login)
android에서만 오류가 나는 것 같아서 안드로이드 gradle을 수정해주었다.
그래도 안된다.
![](https://t1.daumcdn.net/keditor/emoticon/friends1/large/015.gif)
무조건 해결할 수 있는 방법은 그냥
library 안 쓰고
oauth 2.0 방식으로 해결하는 것이다.
kakao로 했을 때와 동일하게 문제를 해결했다.
-모바일 버전은 개발하는남자님 블로그만 봐도 해결이 가능하다
https://dev-caleb.tistory.com/245
flutter web kakao login 하기
https://www.youtube.com/watch?v=ybkiK7bAoNc https://gist.github.com/doyle-flutter/39f3e2189cec8baba5c22c42d09e32a0 Flutter WEB Kakao Login Example Flutter WEB Kakao Login Example. GitHub Gist: instantly share code, notes, and snippets. gist.github.com =>
dev-caleb.tistory.com
그런데 이게 callbackUrlScheme을 지정할 때, 다른 앱이랑 동일하게 해버리면, 다른앱을 킬 수도 있게 되어 난감하게 된다.
callbackUrlScheme은 남들이 따라할 수 없는 유니크한 스킴을 만들자!
'개발 > Flutter' 카테고리의 다른 글
dart 2차 정렬하기 (twice ordering) (0) | 2022.12.16 |
---|---|
how to compare boolean value? (0) | 2022.12.16 |
Firebase dynamic link 안 될 때 (0) | 2022.12.12 |
Firebase Crashlytics (0) | 2022.12.08 |
[번역] flutter_local_notifications (0) | 2022.12.08 |