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

feat: 내 명함위젯의 기본값 갱신 구현 #514

Closed
2 tasks done
hyun99999 opened this issue May 10, 2023 · 1 comment · Fixed by #519
Closed
2 tasks done

feat: 내 명함위젯의 기본값 갱신 구현 #514

hyun99999 opened this issue May 10, 2023 · 1 comment · Fixed by #519
Assignees
Labels
Feat 새로운 기능 구현 Hyungyu 🐯 현규 교수님 작업

Comments

@hyun99999
Copy link
Member

hyun99999 commented May 10, 2023

👀 이슈 (issue)

  • configurable widget 의 기본값을 갱신해보겠습니다.
  • 첫 번째 명함이 바뀌는 경우, 로그아웃, 삭제되는 것을 대비해서 widget 을 추가할때 계속해서 기본값을 갱신해보겠습니다.

🚀 to-do

  • IntentHandler 에서 서버통신을 통해 Intent 의 기본값을 설정하여서 Widget 의 getSnapshot(for:in:completion:) 에서 설정

현재까지는 위젯의 기본값이 위젯을 추가할때마다 매번 호출되는 것이 아닙니다. 기본값을 설정할때 최초에 호출되는 것을 확인하였습니다. 그래서 적합하지 않다고 판단.

  • Widget 의 getSnapshot(for:in:completion:) 에서 서버통신을 통해 설정하는 것입니다.
@hyun99999 hyun99999 added Hyungyu 🐯 현규 교수님 작업 Feat 새로운 기능 구현 labels May 10, 2023
@hyun99999 hyun99999 self-assigned this May 10, 2023
@hyun99999 hyun99999 changed the title feat: Widget 의 기본값 갱신 구현 feat: 내 명함위젯의 기본값 갱신 구현 May 10, 2023
@hyun99999
Copy link
Member Author

hyun99999 commented May 10, 2023

위젯의 기본값은 기본 위젯인 캘린더에서도 바로 바뀌지 않는 것을 확인하였습니다.
조금 텀이 있어야 바뀌더라구요
추가적으로 위젯의 갱신은 내가 일정한 타임을 정해놔도 꼭 거기에 맞춰지지 않는다고 하네여.. 그래서 최대한 자주 확인할 수 있게 초단위로 설정해보려고 합디다.. 그래도 위젯의 기본값이 갱신되기에 조금 텀이 존재할 듯합니다..

아래 링크에서도 기본값 설정을 갱신하고 싶다는 이슈였는데 다른 답이 없었습니다 ㅜ
https://developer.apple.com/forums/thread/696361

hyun99999 added a commit to hyun99999/NADA-iOS-ForRelease that referenced this issue May 11, 2023
- IntentHandler 에서 default[Parameter Name](for:) 메서드를 사용하게되면 최초에 한번 호출되기 때문에 기본값을 정적으로 설정해줄 때 적합했습니다.
hyun99999 added a commit to hyun99999/NADA-iOS-ForRelease that referenced this issue May 11, 2023
- 위젯을 추가하는 snapshot 을 얻기위한 단계를 매번 개입할 수 있기 때문에 매번 기본값에 대해서 확인해야할 경우에는 해당 방법이 적합했습니다.
hyun99999 added a commit to hyun99999/NADA-iOS-ForRelease that referenced this issue May 12, 2023
…ease into feature/TeamNADA#514

# Conflicts:
#	IntentsExtension/IntentHandler.swift
hyun99999 added a commit that referenced this issue May 12, 2023
feat: 내 명함 위젯의 기본값 갱신 구현(#514)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feat 새로운 기능 구현 Hyungyu 🐯 현규 교수님 작업
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant