NativeScript / NativeScript/plugins

Directions on Android: Package visibility query required to open Maps app; nothing happens otherwise

オープン
#493 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
206
フォーク
123
平均マージ
2日 1時間
マージ済み PR(30日)
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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。