I am currently working on a project that involves Nuxt, VueJs, and Capacitor, but I have encountered an issue with routing Firebase dynamic links within the app.
Although the iOS App is correctly configured to accept Associated Domains, it runs into difficulties when attempting to navigate using the 'appUrlOpen' event in Capacitor. The intended navigation to paths like '/about' fails despite the promise indicating success during debugging.
I have double-checked the routes for accuracy and exhausted all possible causes of this problem, yet the simulator does not reflect the expected navigation behavior.
The following code snippet is part of a JavaScript file imported as a plugin in nuxt.config.js:
import { App } from '@capacitor/app';
import Vue from 'vue';
import VueRouter from 'vue-router';
const router = new VueRouter({ routes: [ { path: '/about' }] });
App.addListener('appUrlOpen', data => {
router.push({ path: '/about' }) .then(() => console.log('Navigated!')) .catch(error => { console.log('Error', error); }); });