Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

fix(ios): show an update as soon as it is in the App Store

leepokai0fc1c7c3ef99
diff --git a/apps/ios/Kit/Sources/CodyncKit/Models/Compatibility.swift b/apps/ios/Kit/Sources/CodyncKit/Models/Compatibility.swift
index 23a0bc40..59f44e75 100644
--- a/apps/ios/Kit/Sources/CodyncKit/Models/Compatibility.swift
+++ b/apps/ios/Kit/Sources/CodyncKit/Models/Compatibility.swift
@@ -72,7 +72,9 @@ public enum AppStoreRelease {
struct Result: Decodable { var version: String? }
var results: [Result]
}
- var request = URLRequest(url: URL(string: "https://itunes.apple.com/lookup?id=\(appID)")!)
+ // Apple's CDN keeps the bare URL for up to a day after a release; a query string of its own skips it.
+ let url = URL(string: "https://itunes.apple.com/lookup?id=\(appID)&_=\(Int(Date.now.timeIntervalSince1970))")!
+ var request = URLRequest(url: url)
request.timeoutInterval = 10
request.cachePolicy = .reloadIgnoringLocalCacheData
let (data, response) = try await session.data(for: request)
diff --git a/apps/ios/WhatsNew.md b/apps/ios/WhatsNew.md
index af8d8be7..751f3f8d 100644
--- a/apps/ios/WhatsNew.md
+++ b/apps/ios/WhatsNew.md
@@ -12,8 +12,10 @@ a version without one gets a generic "Bug fixes and improvements" line. Delete o
- 設定 Routine 排程更簡單:選擇每小時、每天、平日或每週,再挑時間就好;需要更細的排程時,仍可用「自訂」直接輸入 cron。
- 時區改成可搜尋的清單,打幾個字就能找到,預設是你目前所在的時區。
+- 新版本一上架,更新提醒就會出現,不再晚上一天。
### en-US
- Setting a routine's schedule is simpler: pick hourly, daily, weekdays or weekly, then the time. Custom still takes a cron for anything finer.
- Time zones come from a searchable list, found in a few keystrokes, starting from the one you're in.
+- The update reminder shows up as soon as a new version is in the App Store, not a day later.
diff --git a/docs/reference/compatibility.md b/docs/reference/compatibility.md
index b13b85ec..912485e4 100644
--- a/docs/reference/compatibility.md
+++ b/docs/reference/compatibility.md
@@ -92,7 +92,7 @@ follows the App Store:
On the iPhone, the *Update Codync* button of an *Update this app* notice is greyed out with
"still in App Store review" while the App Store has an older version; an unanswered lookup
-keeps it enabled (the App Store page shows the truth).
+keeps it enabled (the App Store page shows the truth). Its lookup skips the CDN the same way.
### Reminders