capacitor-community / capacitor-community/electron

Capacitor App Plugin - Events not firing - appUrlOpen / getLaunchUrl()

Open
#194 20 comments 0 reactions 0 assignees View on GitHub
needs reply
Dominant language
TypeScript
Stars
398
Forks
63
PR merge metrics
No merged PRs in 30d

Description

I'm using the capacitor App plugin and trying to get URL from which the app is opened (I need to handle deep link)

npm install @capacitor/app
npx cap sync

App.addListener('appUrlOpen', data => {
console.log('App opened with URL:', data); // **not triggerring**
});

const checkAppLaunchUrl = async () => {
const { url } = await App.getLaunchUrl();

console.log('App opened with URL: ' + url); // **url always empty**
};

appUrlOpen event needs to fire and getLaunchUrl need to give deeplink Url

**Desktop - Windows

@IT-MikeS I appreciate your quick response

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue on the Windows Electron platform using @capacitor/app, the npm install and npx cap sync commands, and the shown appUrlOpen and getLaunchUrl calls. Start by tracing the desktop handling for deep links; done means appUrlOpen fires and getLaunchUrl returns the URL when the app is opened from a deep link.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.