TianganDizhi is built by Xiangyu Sun (sole developer). This policy explains what data the app handles and how.
What TianganDizhi does with your data
Location
When you grant location permission, TianganDizhi uses your approximate location (accurate to about 3 km) to fetch local weather and sunrise, sunset, moonrise and moonset times via Apple WeatherKit, for the app and its widgets. So that widgets can show this without asking again, the last approximate location and the latest forecast are kept on your device, in storage shared only with the app's own widgets. They are never sent to any server operated by the developer. You can deny location permission at any time; the app will fall back to approximate times.
Weather
Weather and astronomical data is fetched from Apple WeatherKit using Apple's framework. The developer has no access to your location or weather query data.
Bazi (Four Pillars) calculator
The birth date, time and gender you enter in the Bazi calculator are used for the calculation on your device only. They are not saved, and they are never sent anywhere, including to analytics.
Custom festivals
Festivals you add yourself are stored on your device, in storage shared only with the app's widgets.
Purchases
TianganDizhi has no in-app purchases or subscriptions.
Anonymous usage analytics (iOS only)
Since September 2026, the iOS app uses Google Analytics for Firebase to understand which features and widgets are used, so development effort goes where it helps most. It collects:
- App usage events — for example which tab or reference screen was opened, which widgets are installed, tapped or removed, which settings were changed, onboarding progress, when the share button is used, and when a custom festival is added or deleted (never its name or date)
- A random app-instance identifier generated by Firebase — not your name, email, Apple ID, or advertising identifier (IDFA)
- Basic device information — device model, iOS version, app version, language, and approximate country/city derived by Google from your IP address
This data is not linked to your identity and is not used for tracking or advertising. It is processed by Google as a service provider under the Google Analytics for Firebase terms and retained for at most 14 months.
You can turn it off at any time: Settings (設定) → Privacy (隱私) → "Allow anonymous usage statistics" (允許匿名使用統計). When off, nothing is sent.
The Mac and Apple Watch apps, and all widget extensions, contain no analytics.
Widgets & App Extensions
Widget extensions (iOS, macOS, watchOS) read shared UserDefaults via app groups to display your current settings. No data leaves the device through widgets.
What TianganDizhi does NOT do
- No crash reporting SDKs
- No advertising networks, and no advertising identifier (IDFA)
- No selling or sharing of data with third parties, other than Google processing the anonymous analytics above
- No tracking across other companies' apps or websites (declared to Apple as "No Tracking")
- No account creation or login required
- No data sent to any server operated by the developer
Data summary
| Data | Where stored | Sent to developer? |
|---|---|---|
| Approximate location (if granted) | On your device, for the app and its widgets | No |
| Weather / astronomical data | Fetched from Apple WeatherKit | No |
| Birth date entered in the Bazi calculator | Not stored (used for the calculation only) | No |
| Custom festivals | On your device | No |
| App preferences & settings | UserDefaults (local, shared via app group) | No |
| Anonymous usage events (iOS, can be turned off) | Google Analytics for Firebase | Yes, as aggregated, anonymous statistics |
中文摘要
- 位置僅用於透過 Apple WeatherKit 取得天氣與日出日落、月出月落時間;大約位置(約 3 公里精度)與最新天氣會暫存在裝置上供小組件使用,不會上傳。
- 八字排盤輸入的出生日期僅在裝置上用於計算,不會儲存或上傳。
- 本 App 沒有 App 內購買或訂閱。
- iOS 版本使用 Google Analytics for Firebase 收集匿名使用統計(例如使用了哪些頁面、小組件與設定),用於改進 App;不收集姓名、電郵、Apple ID 或廣告識別碼,不用於追蹤或廣告。
- 可隨時於「設定 → 隱私 → 允許匿名使用統計」關閉。Mac、Apple Watch 版本及所有小組件不含任何統計功能。
Children
TianganDizhi does not knowingly collect data from anyone, including children.
Changes to this policy
If this policy changes materially, the "Last updated" date above will be updated. The latest version is always at this URL.
Contact
Questions about this policy:
- Email: alexander.xiangyu.sun@gmail.com
- GitHub: https://github.com/xiangyu-sun/tiangandizhi-support/issues