Android build 부터 release key 생성 및 PlayStore 배포 까지 진행하고 발생한 이슈 정리합니다.
RN (React Native)- Android build 부터 PlayStore 배포 까지
Android build 부터 PlayStore 배포 까지 진행 하면서 정리한 내용 공유 합니다. 순서는 다음과 같습니다. - release 용 빌드 및 테스트 - 빌드최적화 (선택) - PlayStore 배포 release 용 빌드 및 테스트 Mac에서..
yannichoongs.tistory.com
해당 이슈는 rn firebase 를 사용해 social auth 를 구현한 경우에만 발생하는 문제입니다.
Android debug to release key sign 하고
release apk 를 device 에 설치하면,
앱 사용중에 google social auth 가 되지 않습니다.
rnfirebase.io/auth/social-auth#google
Social Authentication | React Native Firebase
Sign-in with social provides such as Apple, Facebook, Twitter and Google.
rnfirebase.io
원인
firebase my App 에 SHA1 release 용 Sign Key 가 없고 이전에 정의해놓은 debug 만 있기 때문
따라서, release sign keystore 를 통해 SHA1 key 를 얻어와서
firebase my app에 SHA1 키를 하나더 입력해주면 해결됩니다.
(이건 쉽게 해결했는데 훨 씬 큰 이슈가 아래 있었음)
키스토어 있는 위치로 이동해서 다음 command 통해 나오는 SHA1 키 입력
$ cd rootDir/android/app/
$ keytool -v -list -keystore ompangchu.keystore -alias ompangchu

그리고 market 에 app 출시하고 다운받으면, 또 한번 구글 로그인 안되는 이슈가 있습니다.
(이것 때문에 완전 당황하고, 괜히 app ver. update 두번이나 진행)
원인
play store app sign key 를 firebase fingerprint 에 추가로 입력해줘야 함
즉, 위 firebase 내앱에 'fingerprint' 를 총 3개 입력해야합니다 !

이것 때문에 저도 아래 리뷰 처럼...
완전 스트러글 했습니다 ㅜ

stackoverflow.com/questions/36999751/google-signin-not-working-in-release-mode-apk-android
google signIn not working in release mode apk android
In release mode, my google sign in is not working, but it works fine in debug mode. I got similar question from SO here, but I didn't get perfect solutions. My handleSignInResult is coming false -...
stackoverflow.com
'Mobile 개발 > RN(React Native)' 카테고리의 다른 글
RN - SplashScreen 적용, 그리고 ios xcode bug (0) | 2020.12.23 |
---|---|
RN - Apple Social Login with Firebase (0) | 2020.12.19 |
RN TroubleShooting: IOS build errors (0) | 2020.12.18 |
RN TroubleShooting: Use of undeclared identifier 'FIRApp', 'RNSplashScreen' (0) | 2020.12.15 |
RN - stack 이동시 새로 고침(refresh) (2) | 2020.12.05 |