Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#2,483 11 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
28/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
领域
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
星标
687
派生
691
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ionic-team/capacitor-plugins 的其他 Issue

查看 ionic-team/capacitor-plugins 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。