-
Notifications
You must be signed in to change notification settings - Fork 0
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
Network [#34] 챌린지뷰 Realm 적용 / 번들 아이디 가져오기 시도 중 #38
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kim-seonwoo
approved these changes
May 28, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Realm... 네.. 고생이 많으십니다
Comment on lines
+11
to
+24
class MidnightTaskScheduler { | ||
var timer: Timer? | ||
|
||
init() { | ||
BGTaskScheduler.shared.register(forTaskWithIdentifier: "com.example.app.refresh", using: nil) { task in | ||
self.handleAppRefresh(task: task as! BGAppRefreshTask) | ||
} | ||
scheduleMidnightTask() | ||
} | ||
|
||
func scheduleMidnightTask() { | ||
let request = BGAppRefreshTaskRequest(identifier: "com.example.app.refresh") | ||
request.earliestBeginDate = nextMidnight() // 다음 자정에 실행되도록 설정 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓백그라운드 스케줄링 이군요..?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
👾 작업 내용
중간 점검 차 한번 머지하고 가는 게 좋을 것 같아요 ~
🚀 PR Point
제발 번들아이디 가져오는 방법 🥲 알고 싶네요..
타겟 안에서 서버 통신 하는 게 아예 불가능 하거나 나쁜 방법은 아닌 것 같아서 시도 해볼 예정입니다
Realm 넣고 나서 플젝이 약간 개복치가 되어서.. 필요하다면 바로 삭제합시다.
✅ CheckList
🔗 Issue
Resolved #34