analyze-unrecognized-apps
GitHub分析 Firebase/Google Analytics 中的未识别主机应用 Bundle ID,通过交叉比对现有映射、研究 URL Scheme 或 AASA 文件,确定并添加新的 URL Scheme 映射以优化 Deep Link 返回体验。
Trigger Scenarios
Install
npx skills add n0an/VivaDicta --skill analyze-unrecognized-apps -g -y
SKILL.md
Frontmatter
{
"name": "analyze-unrecognized-apps",
"description": "Analyze unrecognized host app bundle IDs from Firebase\/Google Analytics and add URL scheme mappings",
"disable-model-invocation": true
}
Analyze Unrecognized Host Apps
Last run: 2026-08-29 - added 15 return-URL mappings (Swiftgram, Open Minis, WeChat, Spotify team-ID variant, Reminders, Letterboxd, Eudic, Notion, Meituan, nPlayer, plus 5 universal-link fallbacks) and 5 knownNoSchemeHosts entries. Also removed the canOpenURL gate and the dead LSApplicationQueriesSchemes array, which had exceeded Apple's 50-entry cap and was silently killing the most recent mappings. Note: this sample predates the iOS 26.4 host-resolution fix, so it under-reports - re-run once 3.9.0 has been out a few weeks.
You are given the following context: $ARGUMENTS
Task
Analyze unrecognized host app bundle IDs from Firebase/Google Analytics and determine which ones need URL scheme mappings added to the app.
Instructions
-
Read the current mappings from
VivaDicta/VivaDictaApp.swift— find theknownURLsdictionary insidereturnURL(forHostId:). TheknownNoSchemeHostsset lives just above it, inattemptReturnToHost(hostId:). -
Get the analytics data — the user will provide a screenshot or list of bundle IDs from the Google Analytics "Unrecognized Host Apps" exploration (see
internal/firebase-analytics-events.mdfor how to access it) -
Cross-reference each bundle ID against
knownURLsandknownNoSchemeHosts, and categorize into:Already mapped — bundle ID exists in
knownURLs(these show up in analytics from before the mapping was added)Variant of a mapped app — same app under a different bundle ID: a team-ID suffix (
com.spotify.client.L32G8C83V9), a regional build (com.amazon.AmazonDE), or an app extension (net.whatsapp.WhatsApp.ShareExtension). Aliasing a suffixed build to the same URL is safe. An extension is a judgement call — returning to the parent app is not the surface the user was in.Not actionable — system services that can't be returned to:
(not set)— pre-custom-dimension-registration datacom.apple.SafariViewService— SFSafariViewController embedded in other appscom.apple.springboard— iOS home screen- Other Apple system services
Need to add — real third-party apps not yet in
knownURLs -
Research a way back for the "need to add" apps. Search for:
- "[app name] iOS URL scheme"
- "[app name] deep link"
- "[bundle id] URL scheme"
- Known URL scheme databases and GitHub repos
Two sources beat any blog list, and are worth the extra step for high-volume apps:
- The app's own registration — its open-source
Info.plistor build file (CFBundleURLSchemes), or, for Apple apps, the binary in a simulator runtime under/Library/Developer/CoreSimulator/.../RuntimeRoot/Applications/. - The app's AASA file —
https://<domain>/.well-known/apple-app-site-association. If it lists the bundle ID, the matchinghttps://URL is a valid fallback for an app that registers no custom scheme. This works only on this code path, because the lookup runs solely for the app the keyboard was just typing into, so it is installed by definition.
Watch for schemes shared between apps. Swiftgram registers
tg://andtelegram://alongside official Telegram; iOS picks between claimants unpredictably, so map only a scheme the app owns outright (sg://). -
Output a summary table with:
- Bundle ID
- Event count
- Category (already mapped / variant / not actionable / need to add)
- Return URL (if found) and confidence level
-
After user confirms which entries to add, update
VivaDicta/VivaDictaApp.swift:- Apps with a way back → the
knownURLsdictionary inreturnURL(forHostId:) - Apps with none → the
knownNoSchemeHostsset, so they stop being reported as unrecognized
There is no plist step, and adding one is a regression.
LSApplicationQueriesSchemeswas deleted on 2026-08-29 along with thecanOpenURLgate it existed to permit. Apple caps that array at 50 entries, and past the capcanOpenURLreturns false whether or not the app is installed — which silently killed the newest mappings.UIApplication.openneeds no declaration and reports failure through its own result, so the table can now grow without limit. Do not reintroduce either. - Apps with a way back → the
-
Update the "Last run" line at the top of this file with the date and what changed.
Version History
-
888131c
Current 2026-09-03 10:21
更新代码读取位置至 VivaDictaApp.swift,移除过时的 canOpenURL 检查及 LSApplicationQueriesSchemes 限制,新增对 App Info.plist 和 AASA 文件的深度研究方法。
- c5601d4 2026-07-25 08:14


