#Deep Linking seems to not work.

5 messages · Page 1 of 1 (latest)

round thicket
#

I am using Vite with JSX and in my App.jsx and I am attempting to listen to the action of a deep linking occuring using the following code

    const handleOpenUrl = async (urls) => {
      alert('works!');
    };

    const unsubscribe = onOpenUrl(handleOpenUrl);

    return () => {
      unsubscribe.then((unlisten) => unlisten());
    };
  }, []);```

in permissions I have core:event:default & deep-link:default. My conf.json contains the following
```  "plugins": {
    "deep-link": {
      "desktop": {
        "schemes": ["flow"]
      }
    }```

I am using the following html to trigger the deeplink
```<a href="flow://">test</a>```

the alert never appears once the app is successfully opened via the deeplink.
round thicket
#

Noticing people aren't replying did I not provide enough info or is this perchance a known bug?

timid blade
#

try to open it with terminal using open flow://something

#

also it depends on wheter ur app is opened already or closed

#

and u need to build ur app to register a deep link