appUrlOpen Listener never emitted
See original GitHub issueDescription 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:
- Created 4 years ago
- Comments:13 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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/