question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

appUrlOpen Listener never emitted

See original GitHub issue

Description of the problem:

Affected platform [ ] Android [ x ] iOS [ ] electron [ ] web

OS of the development machine [ ] Windows [ x ] macOS [ ] linux

Capacitor version: 1.1.1

node version: 10.16.1

npm version: 6.9.0

CocoaPods version: 1.7.5

Steps to reproduce:

We have this part of code in our VueJS application:

if (Capacitor.isPluginAvailable('App')) {
    App.addListener('appUrlOpen', (urlOpen) => {
        console.log(`URL: ${urlOpen.url}`);
        vm.handleDeepLink(urlOpen.url);
    });
 }

It will be called in the “mounted hook” of the VueJs application. So, when i open a link that’s assigned to our application, the application opens but it will not run into the section of code that must be called when the ‘appUrlOpen’ event was emitted.

// This never will be called
console.log(`URL: ${urlOpen.url}`);
vm.handleDeepLink(urlOpen.url);

So it looks like the event never will be emitted.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
LrMiLoefcommented, Nov 23, 2020

Hey, as i wrote in my last post, we had to update the ios template as it’s descriped here: https://capacitor.ionicframework.com/docs/ios/updating/ Maybe it can solve your problem too.

1reaction
LrMiLoefcommented, Aug 16, 2019

I think we have solved our problem. We did not recognize that we have to update ios-template manually: https://capacitor.ionicframework.com/docs/ios/updating/

Read more comments on GitHub >

github_iconTop Results From Across the Web

App | Capacitor Documentation
The App API handles high level App state and events. For example, this API emits events when the app enters and leaves the...
Read more >
@capacitor/app - npm
The App API handles high level App state and events.For example, this API emits events when the app enters and leaves the foreground,...
Read more >
Ionic Angular (Capacitor) Auth0 SDK: App appUrlOpen event ...
all is Ok except that the event registred for callback is never triggered. App.addListener('appUrlOpen', ({ url }) => {. Thanks for help
Read more >
Capacitor 'appUrlOpen' event does not always contain search ...
I'm working on a 'log in with X' feature for a react capacitor app, where X is another (php) website hosted by us....
Read more >
2021年04月_weixin_39925098的博客_CSDN博客
2021-01-12. appUrlOpen Listener never emitted. 2021-01-12. Working fine on 0.9.1 but failed to run from the Master: "Invalid value type". 2021-01-12 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found