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

M3-237 iOS 백그라운드 땅따먹기 구현 #72

Merged
merged 6 commits into from
Aug 9, 2024

Conversation

koomin1227
Copy link
Member

작업 내용*

  • iOS 백그라운드 땅따먹기 구현

고민한 내용*

성공한 이유

문서 여기에 있는 라이브러리를 사용하려고 이 문서에 있는데로 따라 했더니 성공했다.

  • 위 라이브러리는 flutter_background_geolocation 이라는 것이었다.
  • 추측하는 이유는 Privacy Manifest 를 넣었고 background mode 에서 Background fetch 를 활성화 시켰기 때문인 것 같다.

한계

  • 화면이 꺼진 상태에서 secure storage 접근이 불가능 했다. os 단에서 접근을 막는 것 같다.
  • 그래서 dio service 에서 토큰을 가져다 쓰는 부분을 UserManager 에서 가져다 쓰게 수정 했다.
  • 그래서 앱이 켜지거나 로그인 할 때 UserManager 에 secureStorage 에 있는 토큰들을 적재한다.
  • 토큰이 만료되었을 떄도 UserManager 에서 재발급 된다. 로그인을 지속시키기 위해서는 secure manager 에 넣어야하는데 넣기 위해 지도의 픽셀이 업데이트 될때 마다 secure storage에 넣도록 했다.

리뷰 요구사항

  • 리뷰할 때 중점적으로 봐줬으면 하는 내용들

스크린샷

@koomin1227 koomin1227 merged commit 6b99191 into develop Aug 9, 2024
1 check passed
@tkdals802 tkdals802 deleted the feature/M3-237-backIos branch August 21, 2024 03:49
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

Successfully merging this pull request may close these issues.

3 participants