Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

bug: Deferred Deeplink not working and `App.getLaunchUrl()` return undefined.

オープン
#2,483 コメント 11 件 リアクション 4 件 担当者 0 名 GitHub で見る

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
28/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java, javascript, swift
領域
api, mobile-dev

調査の方向性

App.getLaunchUrl() のエントリーポイントから始め、issue に記載されている Android Play Store と iOS App Store のシナリオに基づいて、遅延ディープリンクのフローを再現します。動作している通常のディープリンクフローおよび提供されている adb コマンドと比較します。両プラットフォームでインストール後に元のリンクデータが返されること、または制限とサポートされているセットアップが明確に文書化されていることが完了の条件です。

索引モデルが issue の本文から書いたものです。

説明

platform: android platform: ios

Bug Report

Capacitor Version
💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 4.7.3
  @capacitor/core: 4.7.3
  @capacitor/android: 4.7.3
  @capacitor/ios: 4.7.3

Installed Dependencies:

  @capacitor/cli: 3.2.2
  @capacitor/core: 3.2.2
  @capacitor/ios: 3.2.2
  @capacitor/android: 3.2.2

[success] iOS looking great! 👌
[success] Android looking great! 👌
Platform(s)

Android
iOS

Current Behavior

App.getLaunchUrl() return undefined.

Expected Behavior

it should return deferred deeplink when coming from playstore or app store after installing application.

Code Reproduction
async getAppLaunch(){
    const launchUrl = await App.getLaunchUrl();
    console.log(launchUrl)
    if (launchUrl && launchUrl.url) {
      // parse the launchUrl URL to extract the deep link data
      const deepLinkData = new URLSearchParams(launchUrl.url.split('?')[1]);
      console.log(deepLinkData.get('ddl')); // prints "mydeeplinkdata"
    }
  }

Other Technical Details

I am implementing deferred deeplink when user clicks on my link it and they dont have app installed it will take them to respective store after installation App.getLaunchUrl() is not returning original clicked link.

User clicks on this link which takes them to playstore:
https://play.google.com/store/apps/details?id=com.example.myapp&deeplinkdata=mydeeplinkdata
after installation how can i get data in my app?
Normal deeplinks are working. if user have app installed and click any link it open my app and takes them to respective content / page.

npm --version output: 9.3.1

node --version output: v16.13.1

pod --version output (iOS issues only): 1.11.3

Additional Context

i tried to setup play.google.com as my intent filter.
tried this ADC Command
adb shell am start -W -a android.intent.action.VIEW -d "https://play.google.com/store/apps/details?id=com.example.myapp&ddl=mydeeplinkdata" com.example.myapp

Nothing is working. haven't tried on ios but i need this for iOS Too.

主要言語
Java
スター
682
フォーク
689
平均マージ
5日 11時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ionic-team/capacitor-plugins のほかの issue

ionic-team/capacitor-plugins の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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