NativeScript / NativeScript/plugins
Directions on Android: Package visibility query required to open Maps app; nothing happens otherwise
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 206
- 派生
- 123
- 平均合并
- 2 天 1 小时
- 30 天内合并 PR
- 1
描述
Howdy, I just ran into this issue at my day job, where I'm maintaining a Nativescript app that hasn't been touched in a few years. I'm new to Android and I don't fully understand it under the hood, but it seems that I was able to figure it out, but didn't see it documented anywhere in the READMEs. I don't quite have time to create a pull request at the moment and it's not obvious how I should contribute to this, but I wanted to at least create an issue and I might be able to submit something myself later.
As described in this documentation, apps that target Android 11 or newer need to add a <queries> element to their manifests in order to open the Google Maps app. Before I added it, our "directions" button would silently fail. Mine looks like this:
<queries>
<package android:name="com.google.android.apps.maps" />
</queries>
From the source at index.android.ts, it doesn't seem like the app is trying to do open the maps app directly (it just uses a URL), but I imagine something is changing that internally.
Cheers, I appreciate the hard work y'all have put into this ecosystem
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 packages/directions/index.android.ts 和插件的 README 文件开始,然后将报告的行为与 Android 的软件包可见性文档进行对比。记录 Google Maps 所需的 条目,并说明 Android 11 或更高版本上的 directions 操作需要该条目才能正常工作;当 README 明确包含这些设置说明时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, typescript
- 领域
- documentation, mobile
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100